~/talk

Investigating the Many Loops of the Airflow Scheduler

links:none on file
slides:none on file

Trace of a task from creation to run through Airflow code shows a single critical section lock on the pool table that serializes which scheduler instance may queue tasks, a tricky Max TI per query vs parallelism tradeoff that makes tuning throughput and latency brittle, and a surprising priority model where priority_weight sums downstream nodes and can starve shallow DAGs. CeleryExecutor uses a process pool + apply_async and a bulk state fetcher; KubernetesExecutor batches pod creation (worker_pods_creation_batch_size) and relies on watcher queues to reconcile pod states.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Airflow scheduler overview
  3. 3:53Scheduler initialization process
  4. 5:43Main scheduling loop
  5. 9:16Schedule critical section
  6. 12:50Celery executor execution
  7. 17:25Kubernetes executor setup
  8. 20:14Task execution flow
  9. 21:00Key takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.