mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge branch 'master' of github.com:mperham/sidekiq
This commit is contained in:
commit
11598fc2d1
1 changed files with 5 additions and 0 deletions
|
@ -725,6 +725,11 @@ module Sidekiq
|
|||
end
|
||||
|
||||
result.each do |info, busy, at_s, quiet|
|
||||
# If a process is stopped between when we query Redis for `procs` and
|
||||
# when we query for `result`, we will have an item in `result` that is
|
||||
# composed of `nil` values.
|
||||
next if info.nil?
|
||||
|
||||
hash = Sidekiq.load_json(info)
|
||||
yield Process.new(hash.merge('busy' => busy.to_i, 'beat' => at_s.to_f, 'quiet' => quiet))
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue