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

pipeline the shutdown

This commit is contained in:
Mike Perham 2014-06-06 08:37:23 -07:00
parent c293d20aa8
commit 3452efaf0b

View file

@ -83,8 +83,10 @@ module Sidekiq
def stop_heartbeat
Sidekiq.redis do |conn|
conn.srem('processes', identity)
conn.del("#{identity}:workers")
conn.pipelined do
conn.srem('processes', identity)
conn.del("#{identity}:workers")
end
end
end
end