Closed laszewsk closed 5 years ago
The current implementation has status only on workflows that are running. This is after our discussion that it should be possible to run a workflow multiple times. So when a workflow is created it has no status, but when it is activated it creates a new workflow with a name like "x-flow-active", and that has a status like "pending", "running", "done"
you could add a default status such as defined
Default status is "defined".
When a workflow is running, all nodes are upgraded to status "pending". When the executor selects & starts a node, it becomes "running".
From there, it can transition to "error" or "finished"
In the visualize package, status is color-coded as the following:
color = 'violet'
if task.status == "pending":
color = 'lightblue'
elif task.status == "running":
color = 'orange'
elif task.status == "error":
color = 'red'
elif task.status == "finished":
color = 'green'
the mongo objects needs a status
"status": "running" "status": "defined" "status": "ready" "status": "error" "status": "done"