|
|
@ -199,6 +199,7 @@ class Queue(object):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
pipe.watch(depends_on.key)
|
|
|
|
pipe.watch(depends_on.key)
|
|
|
|
if depends_on.get_status() != JobStatus.FINISHED:
|
|
|
|
if depends_on.get_status() != JobStatus.FINISHED:
|
|
|
|
|
|
|
|
pipe.multi()
|
|
|
|
job.set_status(JobStatus.DEFERRED)
|
|
|
|
job.set_status(JobStatus.DEFERRED)
|
|
|
|
job.register_dependency(pipeline=pipe)
|
|
|
|
job.register_dependency(pipeline=pipe)
|
|
|
|
job.save(pipeline=pipe)
|
|
|
|
job.save(pipeline=pipe)
|
|
|
|