Skip to content

Commit

Permalink
Merge pull request #98 from claytron/fix-working-count
Browse files Browse the repository at this point in the history
Fix working count so that it does not show failed jobs
  • Loading branch information
andyatkinson committed Feb 21, 2018
2 parents 7a5e670 + f05ffe4 commit 2c55f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed_job_web/application/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def delayed_jobs(type, queues = [])
rel =
case type
when :working
rel.where('locked_at IS NOT NULL')
rel.where('locked_at IS NOT NULL AND failed_at IS NULL')
when :failed
rel.where('last_error IS NOT NULL')
when :pending
Expand Down

0 comments on commit 2c55f1f

Please sign in to comment.