cloudmesh / cloudmesh-flow

Workflow for cloudmesh
Other
1 stars 1 forks source link

status missing inmongo objects #15

Closed laszewsk closed 5 years ago

laszewsk commented 5 years ago

the mongo objects needs a status

"status": "running" "status": "defined" "status": "ready" "status": "error" "status": "done"

robludwig commented 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"

laszewsk commented 5 years ago

you could add a default status such as defined

robludwig commented 5 years ago

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"

hrbahramian commented 5 years ago

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'