Honor the job_class for failed_queue.

main
Amjith Ramanujam 8 years ago committed by GitHub
parent 89521f8dae
commit 3cf5850afc

@ -115,7 +115,7 @@ class Queue(object):
except NoSuchJobError: except NoSuchJobError:
self.remove(job_id) self.remove(job_id)
else: else:
if job.origin == self.name or (job.is_failed and self == get_failed_queue(connection=self.connection)): if job.origin == self.name or (job.is_failed and self == get_failed_queue(connection=self.connection, job_class=self.job_class)):
return job return job
def get_job_ids(self, offset=0, length=-1): def get_job_ids(self, offset=0, length=-1):

Loading…
Cancel
Save