Module: QueueBus::Worker

Included in:
Driver, Heartbeat, Publisher, Rider
Defined in:
lib/queue_bus/worker.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/queue_bus/worker.rb', line 4

def self.included(base)
  ::QueueBus.adapter.worker_included(base)
end

Instance Method Details

#perform(*args) ⇒ Object

all our workers include this one



9
10
11
12
# File 'lib/queue_bus/worker.rb', line 9

def perform(*args)
  # instance method level support for sidekiq
  self.class.perform(*args)
end