Changed call to WorkflowProcessor.reset to reflect change from class method to instance method.
This commit is contained in:
parent
f9e4b6a972
commit
c5cf3ea7ff
|
@ -115,7 +115,7 @@ def restart_workflow(workflow_id, clear_data=False):
|
|||
"""Restart a workflow with the latest spec.
|
||||
Clear data allows user to restart the workflow without previous data."""
|
||||
workflow_model: WorkflowModel = session.query(WorkflowModel).filter_by(id=workflow_id).first()
|
||||
WorkflowProcessor.reset(workflow_model, clear_data=clear_data)
|
||||
WorkflowProcessor(workflow_model).reset(workflow_model, clear_data=clear_data)
|
||||
return get_workflow(workflow_model.id)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue