Class: CanvasSync::JobBatches::ConcurrentBatchJob
- Inherits:
-
BaseJob
- Object
- ActiveJob::Base
- BaseJob
- CanvasSync::JobBatches::ConcurrentBatchJob
- Defined in:
- lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(sub_jobs, context: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb', line 6 def perform(sub_jobs, context: nil) Batch.new.tap do |b| b.description = "Concurrent Batch Root" b.context = context b.jobs do sub_jobs.each do |j| ChainBuilder.enqueue_job(j) end end end end |