mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Update unregister regexp to match worker registration key, GH-22
This commit is contained in:
parent
931fc43117
commit
1393f99dc1
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ module Sidekiq
|
||||||
|
|
||||||
redis.with_connection do |conn|
|
redis.with_connection do |conn|
|
||||||
conn.smembers('workers').each do |name|
|
conn.smembers('workers').each do |name|
|
||||||
conn.srem('workers', name) if name =~ /:#{Process.pid}:/
|
conn.srem('workers', name) if name =~ /:#{Process.pid}-/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue