Class: PikaQue::RailsWorker

Inherits:
Object
  • Object
show all
Includes:
Worker
Defined in:
lib/pika_que/rails_worker.rb

Instance Method Summary collapse

Methods included from Worker

#ack!, #consumer_arguments, included, #initialize, #logger, #prepare, #reject!, #requeue!, #run, #start, #stop, #work

Instance Method Details

#perform(msg) ⇒ Object



9
10
11
12
# File 'lib/pika_que/rails_worker.rb', line 9

def perform(msg)
  ActiveJob::Base.execute msg
  ack!
end