From 6bc173f1228fb21652338fbfdd9adb08ca79f9f9 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Thu, 22 Mar 2012 14:12:36 +0100 Subject: [PATCH] Bugfix. --- rq/job.py | 2 +- rq/queue.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rq/job.py b/rq/job.py index 8813e62..ecd84bb 100644 --- a/rq/job.py +++ b/rq/job.py @@ -35,7 +35,7 @@ def requeue_job(job_id): """ from .queue import get_failed_queue fq = get_failed_queue() - fq.requeue_job(job_id) + fq.requeue(job_id) class Job(object): diff --git a/rq/queue.py b/rq/queue.py index 5a9b914..3ac4071 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -256,7 +256,7 @@ class FailedQueue(Queue): return self.enqueue_job(job, set_meta_data=False) def requeue(self, job_id): - """Requeues the given job ID.""" + """Requeues the job with the given job ID.""" try: job = Job.fetch(job_id) except NoSuchJobError: