Fix failed controller pipeline tasks were considered completed

This commit is contained in:
allegroai 2020-09-05 16:26:40 +03:00
parent 646163a2cb
commit c30b6d27e8

View File

@ -525,7 +525,7 @@ class PipelineController(object):
continue
if node.job.is_stopped():
completed_jobs.append(j)
node.executed = node.job.task_id()
node.executed = node.job.task_id() if not node.job.is_failed() else False
elif node.timeout:
started = node.job.task.data.started
if (datetime.now().astimezone(started.tzinfo) - started).total_seconds() > node.timeout: