Airflow Basic Terms

Airflow uses a small set of words again and again. Each word names one clear idea. Learning these terms early makes every later topic easier to read, and documentation, error messages, and team conversations start to make sense.

The Cooking Picture

Think of a kitchen. A recipe describes the steps. A cooking session follows that recipe on one specific day. Each step in that session has its own result: done, burnt, or skipped. Airflow terms map to this kitchen very closely.

Kitchen                         Airflow
────────────────────────────────────────────────
Recipe                      →   DAG
One step in the recipe      →   Task
Kind of step (chop, boil)   →   Operator
Cooking on Tuesday          →   DAG run
Chopping on Tuesday         →   Task instance
Kitchen timetable           →   Schedule

Core Terms

DAG

DAG stands for Directed Acyclic Graph. It is a set of tasks with arrows between them. Arrows have a direction, and no chain of arrows ever loops back to its start. A DAG file defines the whole pipeline.

Task

A task is one unit of work inside a DAG, such as "download the file" or "send the email".

Operator

An operator is a template for a kind of task. BashOperator runs a shell command. PythonOperator runs a Python function. An operator plus its settings creates a task.

DAG Run

A DAG run is one execution of the whole DAG for one time period. A daily DAG creates one DAG run per day.

Task Instance

A task instance is one task inside one DAG run. It carries a state such as running, success, or failed. Ten tasks in a DAG and three runs produce thirty task instances.

DAG: tea_shop
 │
 ├── DAG run: Jan 15
 │     ├── task instance: collect_orders  → success
 │     ├── task instance: brew_tea        → success
 │     └── task instance: serve_tea       → failed
 │
 └── DAG run: Jan 16
       ├── task instance: collect_orders  → running
       ├── task instance: brew_tea        → none
       └── task instance: serve_tea       → none

Time Terms

TermPlain Meaning
ScheduleHow often a DAG runs, such as daily or hourly
start_dateFirst date the schedule can apply to
Data intervalThe slice of time that one run covers
Logical dateThe start of the data interval for a run
CatchupWhether Airflow creates runs for missed past intervals

Infrastructure Terms

TermPlain Meaning
SchedulerThe component that decides when tasks run
ExecutorThe method that sends tasks to workers
WorkerA process that runs task code
Metadata databaseThe store for run history and settings
TriggererA service that watches for events for waiting tasks

Data and Connection Terms

TermPlain Meaning
ConnectionSaved login details for an outside system
VariableA saved value that DAGs can read
XComA small message passed from one task to another
HookA helper that talks to an outside system
ProviderA package that adds operators and hooks for one service

Special Task Terms

  • Sensor: a task that waits for a condition to become true.
  • Trigger rule: a setting that decides when a task may start, based on its parents.
  • Pool: a limit on how many tasks use one resource together.
  • Task group: a folder-like bundle of tasks in the UI.
  • Dataset or asset: a named piece of data that triggers other DAGs.

Terms in One Sentence

A scheduler reads a DAG, creates a DAG run on schedule, turns each task into a task instance, and sends it through an executor to a worker, which writes the state to the metadata database.

Common Confusions

Task and Task Instance

A task is the definition in your code. A task instance is that task on one specific run. Fixing the task code changes future instances only.

DAG and DAG Run

The DAG is the plan. The DAG run is one performance of the plan.

Key Takeaways

  • A DAG holds tasks, and operators define what each task does.
  • A DAG run is one execution, and task instances are its parts.
  • The metadata database remembers every state.