Skip to main content

Module execution

Module execution 

Source
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§

AttemptResult
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§

ExecutionError
Why an execution operation failed.
TaskCancel
What cancelling one task did.
TaskRetry
What retrying an unschedulable task did.
WaitEnd
How a wait_for step ends.

Constants§

DEFAULT_MAX_INSTANCES
[mapping] max_instances by 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 returned NOT_YET for 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.