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

Debugging for #22

This commit is contained in:
Mike Perham 2012-02-15 09:31:00 -08:00
parent 1393f99dc1
commit 8ca67521a4

View file

@ -44,7 +44,10 @@ module Sidekiq
end
redis.with_connection do |conn|
conn.smembers('workers').each do |name|
workers = conn.smembers('workers')
logger.info "My tag: ':#{Process.pid}-'"
logger.info "Current workers: #{workers.inspect}"
workers.each do |name|
conn.srem('workers', name) if name =~ /:#{Process.pid}-/
end
end