Skip to main content

Module admission

Module admission 

Source
Expand description

Letting a run start under its job’s policy (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.1 “Policy”): overlap, concurrency groups and the global limit when it wants to start, the timeout while it runs, and the retry of an infrastructure failure when it ends. The decisions are policy.rs; this reads who is running from the ledger and writes the rows.

One lock covers deciding and writing a run’s row, so two fires in this process can’t both take the last place. Two instances sharing the ledger can still both see room for one more for an instant; the limits are for the providers’ rate limits and for tidiness, not safety.

Enums§

Admission
What admitting a fire did.

Type Aliases§

Started
A run another instance’s scheduler might also be starting is only started by whoever clears its waiting reason.