Class: Jason::OutboundMessageQueueWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/jason/outbound_message_queue_worker.rb

Instance Method Summary collapse

Instance Method Details

#performObject



7
8
9
10
11
12
# File 'app/workers/jason/outbound_message_queue_worker.rb', line 7

def perform
  batch = get_batch
  return if batch.size == 0

  Jason.pusher.trigger_batch(batch)
end