1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Execute shutdown event async from rest of system shutdown, fixes #2635

This commit is contained in:
Mike Perham 2015-10-31 11:35:54 -07:00
parent b0d606929d
commit 2022b6b68e
4 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,10 @@
# Sidekiq Changes
3.5.3
-----------
- Adjust shutdown event to run in parallel with the rest of system shutdown. [#2635]
3.5.2
-----------

View file

@ -94,7 +94,6 @@ module Sidekiq
rescue Interrupt
logger.info 'Shutting down'
launcher.stop
fire_event(:shutdown, true)
# Explicitly exit so busy Processor threads can't block
# process shutdown.
exit(0)

View file

@ -52,6 +52,7 @@ module Sidekiq
poller.terminate if poller.alive?
manager.async.stop(:shutdown => true, :timeout => @options[:timeout])
fire_event(:shutdown, true)
@condvar.wait
manager.terminate

View file

@ -1,3 +1,3 @@
module Sidekiq
VERSION = "3.5.2"
VERSION = "3.5.3"
end