MediumScenarioAirflow and orchestration in practice
An Airflow DAG with 800 tasks makes the scheduler slow and tasks queue for minutes. How do you fix it?
What a good answer covers
Reduce top-level code parsing time, split into smaller DAGs or use dynamic task mapping, tune parallelism, pools and max_active_tasks, and increase scheduler resources. Avoid heavy imports and DB calls at parse time.
PreviousWhat is a Kafka partition and how does it relate to ordering?Next A daily DAG must be rerun for the last 30 days after a bug fix. How do you do it safely?
More on Airflow and orchestration in practice
Flashcards for this topic- MediumA daily DAG must be rerun for the last 30 days after a bug fix. How do you do it safely?
- HardA sensor waiting on an upstream file occupies worker slots and starves other tasks. What do you change?
- MediumHow do you pass large data between Airflow tasks?
- MediumWhat are Airflow Datasets and when do they beat time schedules?