Class: Joblin::Batching::ConcurrentBatchJob
- Defined in:
- lib/joblin/batching/jobs/concurrent_batch_job.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.make_batch(sub_jobs, **kwargs, &blk) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/joblin/batching/jobs/concurrent_batch_job.rb', line 5 def self.make_batch(sub_jobs, **kwargs, &blk) ManagedBatchJob.make_batch( sub_jobs, concurrency: true, **kwargs, ordered: false, desc_prefix: 'ConcurrentBatchJob: ', &blk ) end |
Instance Method Details
#perform(sub_jobs, **kwargs) ⇒ Object
16 17 18 |
# File 'lib/joblin/batching/jobs/concurrent_batch_job.rb', line 16 def perform(sub_jobs, **kwargs) self.class.make_batch(sub_jobs, **kwargs) end |