From c2374c8035c7c69f108155824517bbd372013d75 Mon Sep 17 00:00:00 2001 From: zfz Date: Thu, 10 Mar 2016 15:38:36 +0800 Subject: [PATCH] Correct the comment of job's requeue function. --- rq/job.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rq/job.py b/rq/job.py index afc65217..54a0f83f 100644 --- a/rq/job.py +++ b/rq/job.py @@ -62,9 +62,9 @@ def cancel_job(job_id, connection=None): def requeue_job(job_id, connection=None): - """Requeues the job with the given job ID. The job ID should refer to - a failed job (i.e. it should be on the failed queue). If no such (failed) - job exists, a NoSuchJobError is raised. + """Requeues the job with the given job ID. If no such job exists, just + remove the job ID from the failed queue, otherwise the job ID should refer + to a failed job (i.e. it should be on the failed queue). """ from .queue import get_failed_queue fq = get_failed_queue(connection=connection)