Describe a pipeline as tasks and dependencies, and let a scheduler run, retry and monitor it.
A workflow orchestrator such as Apache Airflow does not process data. It decides what runs, when, and in what order, and it retries and reports when something fails. You describe a pipeline as a DAG: tasks plus the arrows between them.
A cron job can start a script at 2 am. But real pipelines have many steps: wait for a file, extract, clean, load, build a report, tell the team. Some steps must wait for others. Some can run side by side. Some fail and need a retry. Doing that with a pile of cron lines and shell scripts gets fragile fast. An orchestrator gives it structure.
In Airflow you write a DAG (Directed Acyclic Graph) in Python. A DAG is a set of tasks and the dependencies between them. "Directed" means each arrow has a direction. "Acyclic" means there are no loops, so there is always a clear order to run in.
| Piece | What it is | Example |
|---|---|---|
| Task | One unit of work in the DAG | Run a SQL file |
| Operator | A template for a type of task | SparkSubmit, BigQuery, Bash, Python |
| Sensor | A task that waits until something is true | Wait for a file in object storage |
| Hook | A reusable connection to an outside system | Postgres or S3 connection |
| XCom | A tiny message passed between tasks | A file path or a row count. Never a big dataset |
| Pool | A cap on how many tasks may use a resource at once | At most 5 tasks against one database |
| Trigger rule | When a task may run, based on upstream results | all_success (the default), all_done, one_failed |
A daily DAG run covers a data interval, for example "all of Monday". The run starts after that interval ends (early Tuesday), because only then is Monday's data complete. The logical date is the start of the interval, so a run that executes on Tuesday has a logical date of Monday. Use it in your queries instead of "now", so a re-run of Monday's run still reads Monday's data.
A simplified model: one scheduler step moves every ready task one state forward, and retries have no delay. Colours follow the Airflow UI. A real scheduler also respects pools, concurrency limits and trigger rules (here every task uses the default “all upstream succeeded”).
extract >> clean >> load and extract >> profile >> report. The >> arrow means "then".| Term | Meaning in easy words |
|---|---|
| DAG | Directed Acyclic Graph: tasks and their dependencies, with no loops |
| Task | One step in a DAG |
| Operator | A template that defines what a task does |
| Sensor | A task that waits for a condition, such as a file or another job |
| Scheduler | The component that creates runs and queues tasks that are ready |
| Executor | The part that decides how and where tasks run (local, Celery, Kubernetes) |
| Data interval | The period of data a run is responsible for |
| Logical date | The start of that interval, used to pick the right data |
| Backfill | Running a DAG for past intervals |
| Catchup | Automatically creating runs for missed intervals |
| Idempotent | Running again for the same interval gives the same result |
| XCom | A small message passed from one task to another |
| SLA | A deadline for when a task or run should finish |
| Choice | We gain | We lose |
|---|---|---|
| Orchestrator instead of cron | Order, retries, UI, history | More moving parts |
| Managed Airflow (cloud) | Less operations work | Cost and less control |
| Many small tasks | Fine-grained retries and visibility | More scheduling overhead |
| Few big tasks | Simpler graph | A retry repeats a lot of work |
| Sensors that wait | Start as soon as data lands | Hold a worker slot unless set to reschedule |