@ -485,7 +485,8 @@ class Job:
connection = pipeline if pipeline is not None else self . connection
connection = pipeline if pipeline is not None else self . connection
if watch and self . _dependency_ids :
if watch and self . _dependency_ids :
connection . watch ( * self . _dependency_ids )
connection . watch ( * [ self . key_for ( dependency_id )
for dependency_id in self . _dependency_ids ] )
jobs = [ job
jobs = [ job
for job in self . fetch_many ( self . _dependency_ids , connection = self . connection , serializer = self . serializer )
for job in self . fetch_many ( self . _dependency_ids , connection = self . connection , serializer = self . serializer )
@ -970,7 +971,8 @@ class Job:
connection = pipeline if pipeline is not None else self . connection
connection = pipeline if pipeline is not None else self . connection
if pipeline is not None :
if pipeline is not None :
connection . watch ( * self . dependency_ids )
connection . watch ( * [ self . key_for ( dependency_id )
for dependency_id in self . _dependency_ids ] )
dependencies_ids = { _id . decode ( )
dependencies_ids = { _id . decode ( )
for _id in connection . smembers ( self . dependencies_key ) }
for _id in connection . smembers ( self . dependencies_key ) }