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
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.make_batch(sub_jobs, context: nil, &blk) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb', line 6 def self.make_batch(sub_jobs, context: nil, &blk) ManagedBatchJob.make_batch( sub_jobs, ordered: false, concurrency: true, context: context, desc_prefix: 'ConcurrentBatchJob', &blk ) end |
Instance Method Details
#perform(sub_jobs, context: nil) ⇒ Object
17 18 19 |
# File 'lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb', line 17 def perform(sub_jobs, context: nil) self.class.make_batch(sub_jobs, context: context) end |