Class: CanvasSync::JobBatches::Sidekiq::SidekiqCallbackWorker

Inherits:
Object
  • Object
show all
Includes:
Batch::Callback::CallbackWorkerCommon, WorkerExtension, Sidekiq::Worker
Defined in:
lib/canvas_sync/job_batches/sidekiq.rb

Class Method Summary collapse

Methods included from Batch::Callback::CallbackWorkerCommon

#perform

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/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