Class: ActiveBatch::BatchStatusCheckJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- ActiveBatch::BatchStatusCheckJob
- Defined in:
- app/jobs/active_batch/batch_status_check_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(batch) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/jobs/active_batch/batch_status_check_job.rb', line 9 def perform(batch) if batch.work_units.not_done.exists? self.class.set(wait: 1.minute).perform_later(batch) else batch.perform_after_batch end end |