Sha256: 1ca17228d522d0b44623dae4187c0a5b24a9ee36107316f6257cbef5f8cab43e

Contents?: true

Size: 487 Bytes

Versions: 25

Compression:

Stored size: 487 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Hephaestus
  class ApplicationJob < ActiveJob::Base
    # Automatically retry jobs that encountered a deadlock
    retry_on ActiveRecord::Deadlocked

    # Most jobs are safe to ignore if the underlying records are no longer available
    discard_on ActiveJob::DeserializationError

    class << self
      def queue_as(part_name = nil, &block)
        super("plug_#{plug_shortname}_#{part_name}", &block)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hephaestus-0.8.15.5 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.15.4 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.15.3 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.15.2 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.15.1 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.15 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.14 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.13 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.12.2 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.12.1 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.12 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.11 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.10 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.9.2 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.9.1 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.9 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.8 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.7.5 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.7.4 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.7.3 app/jobs/hephaestus/application_job.rb