Deep dive in to the Airflow scheduler
summary
Scheduler is reworked for HA by operating on the serialized DAG table so parser and scheduler decouple, and schedulers coordinate only via the metadata DB using row locks and SELECT ... FOR UPDATE SKIP LOCKED. It splits work between scheduler job, executor, and DAG file processor (short‑lived parser subprocesses). DAG runs are first created in queued state (2.1.3 change), executors keep state in memory, pool limits are enforced inside a short critical section (2–100 ms), and workers run a mini‑scheduler for fast follow.
AI-written summary · about
