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/exit_worker.rb

12 lines
150 B
Ruby
Raw Normal View History

class ExitWorker
include Sidekiq::Worker
def perform
2016-11-18 17:33:50 -05:00
logger.warn "Success"
Thread.new do
sleep 0.1
exit(0)
end
end
end