mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Dont srem when empty, fixes #694
This commit is contained in:
parent
a3eb593b21
commit
d232844225
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ module Sidekiq
|
|||
workers_to_remove = workers.select do |worker_name|
|
||||
worker_name =~ /:#{process_id}-/
|
||||
end
|
||||
conn.srem('workers', workers_to_remove)
|
||||
conn.srem('workers', workers_to_remove) if !workers_to_remove.empty?
|
||||
end
|
||||
|
||||
logger.debug { "Terminating worker threads" }
|
||||
|
|
Loading…
Reference in a new issue