Skip to content
Snippets Groups Projects
Commit 78c1e61c authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[experiments] Test for job existance before cascading updates

parent ac168ee4
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -1058,6 +1058,7 @@ class Block(models.Model):
'''
for b in self.dependents.all():
if not hasattr(b, 'job'): continue
if any([k.status in (Block.FAILED, Block.CANCELLED) \
for k in b.dependencies.all()]):
b.job._cancel()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment