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:
parent
1393f99dc1
commit
8ca67521a4
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue