mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix long delay in shutting down retry poller, fixes #174
This commit is contained in:
parent
a69c657378
commit
f6adea534c
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module Sidekiq
|
||||||
sleep
|
sleep
|
||||||
rescue Interrupt
|
rescue Interrupt
|
||||||
logger.info 'Shutting down'
|
logger.info 'Shutting down'
|
||||||
poller.terminate if poller.alive?
|
poller.terminate! if poller.alive?
|
||||||
@manager.stop!(:shutdown => true, :timeout => options[:timeout])
|
@manager.stop!(:shutdown => true, :timeout => options[:timeout])
|
||||||
@manager.wait(:shutdown)
|
@manager.wait(:shutdown)
|
||||||
# Explicitly exit so busy Processor threads can't block
|
# Explicitly exit so busy Processor threads can't block
|
||||||
|
|
Loading…
Add table
Reference in a new issue