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

10 lines
196 B
Ruby

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