Skip to main content

Module attempts

Module attempts 

Source
Expand description

Attempts: one try of a task instance on a worker.

An assignment is stored before AssignTask is sent: the task instance becomes running and its try number goes up, in one transaction that only succeeds while it is queued (two passes can’t assign it twice). An attempt’s first end wins: delivery is at least once, so a repeated Finished changes nothing (see archive/PROJECT.md, Task assignment).

Structs§

ActiveAttempt
An open attempt, as the concurrency limits count it.
AttemptEnd
How an attempt ended.
ChainedAttempt
An open TriggerDagOperator attempt (see Database::chained_attempts).
CleanupEnd
How an attempt’s cleanup ended.
InstanceResult
One instance of a mapped task, as its downstream tasks see it.
ReadyInstance
A queued task instance of a running run, ready to be assigned.
StoredAttempt
A stored attempt.
Unschedulable
A task instance of a running run waiting for a worker (unschedulable).

Constants§

ENDS_PER_STATEMENT
The attempt queries (sqlx needs 'static text, so the shared columns are written out). The most attempt ends one statement records (16 parameters each: well under either database’s limit).