Expand description
Concurrency limits (see archive/PROJECT.md, Native API: Concurrency limits, decisions 87-91):
max_active_tasks on a DAG, max_active and max_active_per_run on a task.
The master counts the open attempts (assigned and not yet started, running, cleaning up) in
memory, by DAG, by task and by a run’s task (88A): read from the database once when it
starts dispatching (one master holds the lease, its writes fenced), then kept as it assigns
and as attempts end. Each instance of a mapped task counts (89). A task is checked as it
is assigned; one whose limit is reached stays queued, saying which limit and its value.
The limits across runs (max_active_tasks, max_active) are the DAG’s current version’s,
max_active_per_run the run’s own version’s (87A).