Commit f1185c46 authored by Zdralovic Edim's avatar Zdralovic Edim

Fixed status bug when restarting workflow

parent bdadf992
......@@ -272,7 +272,7 @@ class WorkflowManager:
newWorkflow.userToken = wfToRestart.userToken
newWorkflow.workflowDBID = wfToRestart.workflowDBID
newWorkflow.jobs = wfToRestart.jobs
newWorkflow.stopped = True
newWorkflow.stopped = wfToRestart.stopped
newWorkflow.jobStore = wfToRestart.jobStore
newWorkflow.jobStoreForPipeline = wfToRestart.jobStoreForPipeline
newWorkflow.dataFilesDir = wfToRestart.dataFilesDir
......@@ -315,6 +315,7 @@ class WorkflowManager:
result = i
break
if result is not None:
result.killToilRunner()
return {"workflow_id":result.workflowID}
else:
return "This Workflow does not exist"
......
......@@ -8,10 +8,10 @@ curl -d '{"usertoken":"user1"}' -H "Content-Type: application/json" -X GET http:
curl -X GET http://localhost:5000/workflows/
DELETE workflow
curl -X DELETE http://localhost:5000/workflows/
curl -X DELETE http://localhost:5000/workflows/e78e64e5-7c4c-4c7a-9af0-61543d37dbeb
RESTART workflow
curl -X POST http://localhost:5000/workflows/
curl -X POST http://localhost:5000/workflows/e78e64e5-7c4c-4c7a-9af0-61543d37dbeb
testing flask:
https://damyanon.net/post/flask-series-testing/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment