Assure we update the workflow model, so we don't keep reporting the error over and over again.

This commit is contained in:
Dan 2022-02-17 14:12:31 -05:00
parent 8a81265ae8
commit c2c6410bbb

View File

@ -121,6 +121,8 @@ class WorkflowService(object):
processor.save()
except Exception as e:
workflow_model.status = WorkflowStatus.erroring
db.session.add(workflow_model)
db.session.commit()
app.logger.error(f"Error running waiting task for workflow #%i (%s) for study #%i. %s" %
(workflow_model.id,
workflow_model.workflow_spec_id,