mirror of https://github.com/rq/rq.git
Pass connection explicitly to Job.fetch
This commit is contained in:
parent
074d42fe54
commit
415a159ac3
|
@ -74,7 +74,7 @@ class Queue(object):
|
|||
"""Returns a list of all (valid) jobs in the queue."""
|
||||
def safe_fetch(job_id):
|
||||
try:
|
||||
job = Job.fetch(job_id)
|
||||
job = Job.fetch(job_id, connection=self.connection)
|
||||
except NoSuchJobError:
|
||||
return None
|
||||
except UnpickleError:
|
||||
|
|
Loading…
Reference in New Issue