Skip to content

Commit

Permalink
Implement the requeue_job() top-level API function.
Browse files Browse the repository at this point in the history
This completely fixes rq#37.
  • Loading branch information
nvie committed Mar 21, 2012
1 parent c684949 commit 28216cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rq/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def requeue_job(job_id):
a failed job (i.e. it should be on the failed queue). If no such (failed)
job exists, a NoSuchJobError is raised.
"""
raise NotImplementedError('Go implement this')
from .queue import get_failed_queue
fq = get_failed_queue()
fq.requeue_job(job_id)


class Job(object):
Expand Down

0 comments on commit 28216cf

Please sign in to comment.