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.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
if result is not None:
return {"workflow_id":result.workflowID}
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:
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