Expand description
Moving runs forward: task instances for new runs, results of attempts, retries whose delay
passed, cancelling, and the run result (the rules are in crate::progress).
Every change is stored as it is decided, a new run’s preparation in one transaction (B79). Assigning tasks to workers and the messages of the protocol use these operations (see archive/PROJECT.md, Task assignment).
Structs§
- Attempt
Result - How an attempt ended, as the master needs it.
- Cancelled
- What cancelling a run did.
- Execution
- Runs moved forward in a database.
- Recorded
- What recording an attempt’s result did.
Enums§
- Execution
Error - Why an execution operation failed.
- Task
Cancel - What cancelling one task did.
- Task
Retry - What retrying an
unschedulabletask did. - WaitEnd
- How a
wait_forstep ends.
Constants§
- DEFAULT_
MAX_ INSTANCES [mapping] max_instancesby default.- FAILED
wait_for’s outcome for a run, or task, it waited for that didn’t succeed.- INSTANCES_
PER_ ROUND - The most task instances a round creates for runs that just started (whole runs only, at least one): many runs starting at once go over a few rounds (B18).
- NOT_
YET_ OUTCOME - What an
@sensor(wait_for=...)’s attempt ends with when its function returnedNOT_YETfor the run it was given (decision 353): it waits for a later one. - RETRIES_
PER_ ROUND - The most failed tasks a round queues again once their retry delay passed (B18).
- SUCCESS
- The outcome of every successful task until outcome types arrive (milestone M4).
- TIMED_
OUT - A wait step’s outcome when its time ran out.