Merge pull request #852 from amjith/patch-1

Honor the job_class for failed_queue.
main
Selwin Ong 8 years ago committed by GitHub
commit 339de5affa

@ -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