mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
10 lines
196 B
Ruby
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
|