Task state and lifecycle
State describes what the Worker is doing; it does not claim that a business conclusion is correct.
States
| State | Meaning |
|---|---|
queued | Created and waiting for a Worker |
running | Steps in the plan are executing |
succeeded | The plan finished and deliverables exist |
failed | An unrecovered execution error occurred |
cancelled | The user stopped the task |
Continue and cancel
Running tasks can be cancelled. Continue completed work with a revision or a new task instead of treating the first deliverable as unquestionable truth.
Polling
Clients can read task details and update the UI from status. An event stream will reduce the need for frequent polling in a later release.