Changed call to WorkflowProcessor.reset to reflect change from class method to instance method.

This commit is contained in:
mike cullerton 2021-01-29 14:34:09 -05:00
parent f9e4b6a972
commit c5cf3ea7ff
1 changed files with 1 additions and 1 deletions

View File

@ -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)