1
0
Fork 0
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:
Mike Perham 2012-05-05 14:03:56 -07:00
parent a69c657378
commit f6adea534c

View file

@ -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