1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Add worker

This commit is contained in:
Mike Perham 2012-01-16 20:05:38 -08:00
parent 38949ee8fb
commit 4be63712f4

10
lib/sidekiq/worker.rb Normal file
View file

@ -0,0 +1,10 @@
module Sidekiq
class Worker
include Celluloid
def process(json)
klass = json['class'].constantize
klass.new.perform(*json['args'])
end
end
end