Task state and lifecycle

State describes what the Worker is doing; it does not claim that a business conclusion is correct.

States

StateMeaning
queuedCreated and waiting for a Worker
runningSteps in the plan are executing
succeededThe plan finished and deliverables exist
failedAn unrecovered execution error occurred
cancelledThe 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.