A task's life

You will learn

Which states a dispatched task passes through, and which events are legal in each.

dispatch.t27 is the Queen's task lifecycle, the cycle that chooses, starts, ends, reviews and releases work. A task has 12 states and 16 events. next_state answers every pair, and 99 means the event is illegal in that state: a verdict cannot reach a running task, and a reap cannot reach an ended one. After a verdict a send-back waits for its floor and is released; even an accept is sent back if CI turns red under the ceiling.

Open the interactive lesson →