mirror of https://github.com/rq/rq.git
commit
5990fa9d73
|
@ -194,7 +194,7 @@ class Queue(object):
|
||||||
if depends_on is not None:
|
if depends_on is not None:
|
||||||
if not isinstance(depends_on, self.job_class):
|
if not isinstance(depends_on, self.job_class):
|
||||||
depends_on = Job(id=depends_on, connection=self.connection)
|
depends_on = Job(id=depends_on, connection=self.connection)
|
||||||
with self.connection.pipeline() as pipe:
|
with self.connection._pipeline() as pipe:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
pipe.watch(depends_on.key)
|
pipe.watch(depends_on.key)
|
||||||
|
|
Loading…
Reference in New Issue