From 28216cf63aec4805855e8e3484549a07fb966bba Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Wed, 21 Mar 2012 15:25:20 +0100 Subject: [PATCH] Implement the requeue_job() top-level API function. This completely fixes #37. --- rq/job.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index 83617e3..8813e62 100644 --- a/rq/job.py +++ b/rq/job.py @@ -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):