main
Vincent Driessen 13 years ago
parent 28216cf63a
commit 6bc173f122

@ -35,7 +35,7 @@ def requeue_job(job_id):
""" """
from .queue import get_failed_queue from .queue import get_failed_queue
fq = get_failed_queue() fq = get_failed_queue()
fq.requeue_job(job_id) fq.requeue(job_id)
class Job(object): class Job(object):

@ -256,7 +256,7 @@ class FailedQueue(Queue):
return self.enqueue_job(job, set_meta_data=False) return self.enqueue_job(job, set_meta_data=False)
def requeue(self, job_id): def requeue(self, job_id):
"""Requeues the given job ID.""" """Requeues the job with the given job ID."""
try: try:
job = Job.fetch(job_id) job = Job.fetch(job_id)
except NoSuchJobError: except NoSuchJobError:

Loading…
Cancel
Save