Implement the requeue_job() top-level API function.

This completely fixes #37.
This commit is contained in:
Vincent Driessen 2012-03-21 15:25:20 +01:00
parent c684949045
commit 28216cf63a
1 changed files with 3 additions and 1 deletions

View File

@ -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):