Revert "Introduce workflow failure condition"

This commit is contained in:
Alan Rominger
2016-10-27 12:21:31 -04:00
committed by GitHub
parent bbf185cd0b
commit 76fae6c052
8 changed files with 21 additions and 138 deletions

View File

@@ -73,12 +73,10 @@ def process_finished_workflow_jobs(workflow_jobs):
dag = WorkflowDAG(workflow_job)
if dag.is_workflow_done():
with transaction.atomic():
if workflow_job._has_failed():
workflow_job.status = 'failed'
else:
workflow_job.status = 'successful'
# TODO: detect if wfj failed
workflow_job.status = 'completed'
workflow_job.save()
workflow_job.websocket_emit_status(workflow_job.status)
workflow_job.websocket_emit_status('completed')
def rebuild_graph():
"""Regenerate the task graph by refreshing known tasks from Tower, purging