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§
- Active
Attempt - An open attempt, as the concurrency limits count it.
- Attempt
End - How an attempt ended.
- Chained
Attempt - An open
TriggerDagOperatorattempt (seeDatabase::chained_attempts). - Cleanup
End - How an attempt’s cleanup ended.
- Instance
Result - One instance of a mapped task, as its downstream tasks see it.
- Ready
Instance - A queued task instance of a running run, ready to be assigned.
- Stored
Attempt - 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
'statictext, so the shared columns are written out). The most attempt ends one statement records (16 parameters each: well under either database’s limit).