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:
parent
c293d20aa8
commit
3452efaf0b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue