Skip to content

Commit

Permalink
Fixed the hash JID lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinElMotayam committed Jan 15, 2018
1 parent 212b3c0 commit 6a27199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attentive_sidekiq/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def update_disappeared_jobs
# Those jobs that appeared in the first suspicious list, but not the second one were simply finished
# quickly by Sidekiq before showing up as active by a worker.
suspicious = AttentiveSidekiq::Suspicious.jobs
those_lost.delete_if{|i| !suspicious.include?(i["jid"])}
those_lost.delete_if{|i| !suspicious.any?{|j| i['jid'] == j['jid']} }

those_lost.each do |job|
Disappeared.add(job)
Expand Down

0 comments on commit 6a27199

Please sign in to comment.