Skip to content
IT glossary
Data and MLUpdated December 3, 2026

Apache Airflow

Apache Airflow coordinates workflows such as daily data loads. It starts tasks on a schedule or in response to a trigger, runs them in dependency order, and records which ones succeed or fail.

Also known as: Airflow

What Apache Airflow does

Imagine that a daily dashboard needs three steps: import yesterday’s orders, check that the import is complete, and refresh the dashboard tables. A timer can start the import, but it doesn’t know whether the tables are ready to refresh. Airflow coordinates the whole workflow: it starts tasks when their dependencies are met, tracks their outcomes, and can retry failures. It delegates the actual work to task code or to other systems. For example, Airflow can submit a SQL query, but the data warehouse executes it.

How a workflow runs

In Airflow, you define workflows in Python as DAGs, or directed acyclic graphs. Each node is a task, and each arrow is a dependency. Acyclic means no task can depend on itself, even through a chain of other tasks. Tasks that don’t depend on one another can run in parallel if resources and configuration allow it.

A DAG run is one execution of that workflow, with separately tracked task instances. The scheduler creates scheduled runs and determines which tasks are eligible to run. The executor controls how those tasks are dispatched, for example to local processes or remote workers. In the web UI, you can inspect task states and logs for a particular run instead of guessing which step failed.

Example: refreshing a sales report

In a DAG file, you might express the dependencies like this:

load_orders >> check_orders >> refresh_sales_report

The arrows express ordering, not data movement. By default, the refresh waits for the check to succeed. If loading fails because of a temporary network problem, Airflow can retry it without running the downstream tasks first. That retry is only safe if the load handles repeated execution: replacing the target day’s partition, for example, avoids appending the same orders twice.

When Airflow is a good fit

Typical uses include batch ETL, warehouse transformations, and scheduled model retraining. It is useful when you need to see which step failed and rerun it without rerunning the entire pipeline. It is not a stream processor: if you need to transform every Kafka message as it arrives, use a streaming system rather than starting a DAG run for each message. And while Airflow tasks can exchange small values through XCom, such as an output file path, large datasets should stay in a database or object store.

How it comes up in interviews

A common scenario is rebuilding a week of reports after fixing a bug. Explain how a backfill creates runs for the historical intervals you select. The key is to make each task use its run’s data interval, not the current wall-clock date. Otherwise a run intended for last Tuesday can read or overwrite today’s data. Be ready to explain how you would make the write idempotent so that rerunning the same interval leaves one correct result.