Module: SolidQueue::Job::Batchable

Extended by:
ActiveSupport::Concern
Included in:
SolidQueue::Job
Defined in:
app/models/solid_queue/job/batchable.rb

Instance Method Summary collapse

Instance Method Details

#batched?Boolean

Also guards against the batches schema not being installed: without its migration, jobs don't even have a batch_id.



25
26
27
# File 'app/models/solid_queue/job/batchable.rb', line 25

def batched?
  Batch.migrated? && batch_id?
end