mirror of https://github.com/rq/rq.git
Use kwarg to specify connection.
This commit is contained in:
parent
1792a194bd
commit
9abbfc4dfb
|
@ -310,7 +310,7 @@ class Worker(object):
|
|||
except StopRequested:
|
||||
break
|
||||
except UnpickleError as e:
|
||||
job = Job.safe_fetch(e.job_id, self.connection)
|
||||
job = Job.safe_fetch(e.job_id, connection=self.connection)
|
||||
self.handle_exception(job, *sys.exc_info())
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue