1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/myapp/app/workers/hard_worker.rb
2012-05-12 14:02:40 -07:00

10 lines
228 B
Ruby

class HardWorker
include Sidekiq::Worker
sidekiq_options :timeout => 60, :backtrace => 5, :timeout => 20
def perform(name, count, salt)
raise name if name == 'crash'
logger.info Time.now
sleep count
end
end