mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
11 lines
173 B
Ruby
11 lines
173 B
Ruby
class ExitJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(*args)
|
|
Sidekiq.logger.warn "Success"
|
|
Thread.new do
|
|
sleep 0.1
|
|
exit(0)
|
|
end
|
|
end
|
|
end
|