Skip to content

Commit

Permalink
Add comment to requeue-and-double
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie Corrigall committed Jul 7, 2016
1 parent 4420314 commit bd79401
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rq_dashboard/web.py
Expand Up @@ -182,6 +182,7 @@ def requeue_and_double_job_view(job_id):
raise NoSuchJobError(
'Job {} does not exist in failed queue'.format(job_id)
)
# Remove the job from the failed queue
if fq.remove(job_id) == 0:
raise InvalidJobOperationError('Cannot requeue non-failed jobs')
# Reset the job state
Expand Down

0 comments on commit bd79401

Please sign in to comment.