Class: CanvasSync::JobBatches::Compat::Sidekiq::SidekiqCallbackWorker
- Inherits:
-
Object
- Object
- CanvasSync::JobBatches::Compat::Sidekiq::SidekiqCallbackWorker
- Includes:
- Batch::Callback::CallbackWorkerCommon, WorkerExtension, Sidekiq::Worker
- Defined in:
- lib/canvas_sync/job_batches/compat/sidekiq.rb
Class Method Summary collapse
Methods included from Batch::Callback::CallbackWorkerCommon
Methods included from WorkerExtension
#batch, #batch_context, #bid, #valid_within_batch?
Class Method Details
.enqueue_all(args, queue) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/canvas_sync/job_batches/compat/sidekiq.rb', line 32 def self.enqueue_all(args, queue) return if args.empty? ::Sidekiq::Client.push_bulk( 'class' => self, 'args' => args, 'queue' => queue ) end |