Sha256: 1ca17228d522d0b44623dae4187c0a5b24a9ee36107316f6257cbef5f8cab43e

Contents?: true

Size: 487 Bytes

Versions: 8

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

8 entries across 8 versions & 1 rubygems

Version Path
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
hephaestus-0.8.7.2 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.7.1 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.7 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.6 app/jobs/hephaestus/application_job.rb
hephaestus-0.8.5 app/jobs/hephaestus/application_job.rb