Sha256: e04c1cbecbe622933798b537d459398059cdb2468eb912388b729e41904dd9f9
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
module GoodJob # Thread-local attributes for passing values from Instrumentation. # (Cannot use ActiveSupport::CurrentAttributes because ActiveJob resets it) module CurrentExecution # @!attribute [rw] error_on_retry # @!scope class # Error captured by retry_on # @return [Exception, nil] thread_mattr_accessor :error_on_retry # @!attribute [rw] error_on_discard # @!scope class # Error captured by discard_on # @return [Exception, nil] thread_mattr_accessor :error_on_discard # Resets attributes # @return [void] def self.reset self.error_on_retry = nil self.error_on_discard = nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
good_job-1.1.3 | lib/good_job/current_execution.rb |