Orchestration and dbt · core
How Airflow runs a DAG and what changed in Airflow 3
Airflow is an orchestrator: the scheduler decides what is ready, an executor sends tasks to workers, and all state lives in the metadata database. Airflow 3 changed the API, the task model and scheduling defaults.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- The DAG processor parses DAG files. The scheduler creates DAG runs, decides which task instances are ready (dependencies, pools, limits) and queues them. The executor hands them to workers. State is in the metadata database.
- Airflow 3 (April 2025): the API server replaces the webserver. Tasks use the Task SDK (from airflow.sdk import dag, task) and the Task Execution API instead of reaching the database, which isolates them and allows remote workers (Edge Executor).
- Also new in 3: DAG versioning, scheduler-managed backfills, assets (formerly datasets), event-driven scheduling and a new UI. Several executors can run side by side.
- Removed or changed: execution_date (use logical_date), schedule_interval and timetable arguments (use schedule), SubDAGs (use TaskGroups), SLAs (replaced by Deadline Alerts from 3.1), SequentialExecutor, /api/v1 (use REST API v2). Common operators moved to apache-airflow-providers-standard. catchup is False by default.
- A plain cron string now uses CronTriggerTimetable, which has no data interval. The logical date is when the run fires, not the start of a data interval. DAGs that used ds as the day being processed can load the wrong day.
- Executors: LocalExecutor for one machine, CeleryExecutor for a fleet with queues, KubernetesExecutor for a pod per task.
- Parallel then join: start >> [a, b, c] >> join. Trigger rules decide when join runs (all_success by default; all_done, none_failed and others).
- XCom is for small values such as a path or a row count, not data. Airflow orchestrates; heavy processing belongs in Spark or the warehouse.
- Before upgrading: run Ruff's AIR301 and AIR302 rules over the DAGs, check providers and plugins, and run a staging copy comparing logical dates and outputs. A DAG with no schedule argument silently stops being scheduled.
The red pen
Common traps: mistake → fix
Mistake: execution_date is when the task ran
Fix: it was an identifier of the data interval, and it is removed in Airflow 3.
Mistake: Process gigabytes inside an Airflow task
Fix: workers orchestrate; use Spark or the warehouse.
Mistake: Just pip install the new version
Fix: tasks can no longer query the metadata database and the cron behaviour changed.
Easy to hard
Questions interviewers ask, easy to hard
- Explain the scheduler, executor, workers and metadata database in Airflow.
- What changed in Airflow 3 that matters for DAGs?
- What does a trigger rule do?
- What should you check before upgrading from Airflow 2 to 3?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.