1
0
Fork 0
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:
Mike Perham 2012-02-14 17:27:46 -08:00
parent 931fc43117
commit 1393f99dc1

View file

@ -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