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:
|
except StopRequested:
|
||||||
break
|
break
|
||||||
except UnpickleError as e:
|
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())
|
self.handle_exception(job, *sys.exc_info())
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue