From 88a3c601772e84c0618c41a6815e33163f16f7bf Mon Sep 17 00:00:00 2001 From: Julien Surloppe Date: Sat, 3 Dec 2016 16:28:48 +0100 Subject: [PATCH] Fix get job on failed queue --- rq/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/queue.py b/rq/queue.py index 8231b08..d010855 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -111,7 +111,7 @@ class Queue(object): except NoSuchJobError: self.remove(job_id) else: - if job.origin == self.name: + if self == get_failed_queue(connection=self.connection) or job.origin == self.name: return job def get_job_ids(self, offset=0, length=-1):