brain-life / workflow_ui

Workflow UI prototype for Brain-Life
http://brain-life.org
0 stars 1 forks source link

Show instance status #3

Open soichih opened 7 years ago

soichih commented 7 years ago

I need to put instance status maker back to let user know which one is running, finished, failed, etc..

At the moment, there is no instance status that aggregates all tasks running inside the instance which makes this a bit difficult. I believe I need to do following.

1) When a task status changes (not when task gets updated), update instance status[] field. 2) Above implies adding task status[] under instance (again..) 3) Emit event when instance record gets updated 4) Update UI to subscribe and receive the instance update event 5) Update UI to calculate the current instance status based on task status.

soichih commented 6 years ago

Instance now has "status" field that I can display - but we also need to subscribe to instance update event to update the instance status.