mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 21:28:32 +00:00
Assure we update the workflow model, so we don't keep reporting the error over and over again.
This commit is contained in:
parent
8a81265ae8
commit
c2c6410bbb
@ -121,6 +121,8 @@ class WorkflowService(object):
|
|||||||
processor.save()
|
processor.save()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
workflow_model.status = WorkflowStatus.erroring
|
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" %
|
app.logger.error(f"Error running waiting task for workflow #%i (%s) for study #%i. %s" %
|
||||||
(workflow_model.id,
|
(workflow_model.id,
|
||||||
workflow_model.workflow_spec_id,
|
workflow_model.workflow_spec_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user