Module: GoodJob::ActiveJobExtensions::Batches
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/good_job/active_job_extensions/batches.rb
Instance Method Summary collapse
- #batch ⇒ Object (also: #batch?)
Instance Method Details
#batch ⇒ Object Also known as: batch?
14 15 16 |
# File 'lib/good_job/active_job_extensions/batches.rb', line 14 def batch @_batch ||= CurrentThread.execution&.batch&.to_batch if CurrentThread.execution.present? && CurrentThread.execution.active_job_id == job_id end |