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

Clear worker state upon shutdown, fixes #1764

This commit is contained in:
Mike Perham 2014-06-05 16:29:17 -07:00
parent 92c855383e
commit c293d20aa8

View file

@ -84,6 +84,7 @@ module Sidekiq
def stop_heartbeat
Sidekiq.redis do |conn|
conn.srem('processes', identity)
conn.del("#{identity}:workers")
end
end
end