# Airflow Task

> One step in an Airflow DAG. It runs once in each DAG run.

**Field:** Data Engineering  
**Category:** Orchestration  
**Also known as:** Task Instance, Airflow Task Instance

## Think of it like

It is one job on a chore chart, like feeding the cat. Each day it gets its own tick.

## Definition

An Airflow task is one step inside a DAG, such as load the orders. It is made from an operator or from a Python function with the task decorator. Each time the DAG runs, the task gets a task instance for that run. The instance has a state, such as queued, running, success or failed. You can clear one instance to run just that step again.

## Example

In yesterday's run, the load task failed. Jack clears just that task instance, and only it runs again.

## Why it matters

Tasks are the size at which Airflow retries, logs and reruns work. Small, clear tasks make failures easy to find and fix.

## Common mistake

Packing a whole pipeline into one task. A failure near the end then reruns every step from the start.

## Three principles

- **One step.** A single unit of work in a DAG.
- **An instance per run.** Each run gets its own copy and state.
- **Rerun alone.** Clear one instance to repeat one step.

## Related terms

- [Airflow DAG](https://learn.benibix.com/term/data/airflow-dag)
- [Airflow Operator](https://learn.benibix.com/term/data/airflow-operator)
- [Airflow DAG Run](https://learn.benibix.com/term/data/airflow-dag-run)
- [Task Retry](https://learn.benibix.com/term/data/task-retry)
- [Airflow TaskFlow API](https://learn.benibix.com/term/data/airflow-taskflow-api)
- [Airflow Task Group](https://learn.benibix.com/term/data/airflow-task-group)

![An operator box labelled BashOperator becomes a task called load_orders inside a DAG. Below it, three DAG runs for 1, 2 and 3 March each hold one task instance with its own status: success, success and running. The third run also shows an XCom carrying a file path.](https://learn.benibix.com/diagrams/airflow-operator-task.svg)

---

Source: https://learn.benibix.com/term/data/airflow-task
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
