Declare an Airflow Dag as a scheduled workflow of tasks
Answer: A Dag is a model that encapsulates everything needed to execute a workflow. Tasks are discrete units of work that are run on workers, and a Schedule says when the workflow should run.
What a Dag holds
Airflow treats a Dag as the model that encapsulates everything needed to execute a workflow. Attributes include the Schedule (when the workflow should run) and Tasks (discrete units of work that are run on workers). Task Dependencies set the order and conditions under which tasks execute. Callbacks list actions to take when the entire workflow completes.
The term DAG comes from the mathematical concept of a directed acyclic graph, but Airflow's meaning has evolved, so the project decided to write Dag. The Dag structure is made by declaring dependencies between tasks. Individual task dependencies can be declared in two main ways.
| Schedule | Tasks | |---|---| | when the workflow should run | discrete units of work | | Task Dependencies | order and conditions | | Callbacks | when the entire workflow completes |
Runs and tags
There are also shortcuts to declaring more complex dependencies. Other formats can be loaded with a Dag importer. You can write schedule="@once" or schedule="@continuous". A tag name per dag allows quick filtering in the DAG view. The metadata table contains DAG properties.
See also
Claims
- id: C1 claim: A Dag is a model that encapsulates everything needed to execute a workflow. source: S1 evidence: "A Dag is a model that encapsulates everything needed to execute a workflow."
- id: C2 claim: Tasks are discrete units of work that are run on workers. source: S1 evidence: "Tasks : tasks are discrete units of work that are run on workers."
- id: C3 claim: A tag name can be stored per Dag for quick filtering in the Dag view. source: S2 evidence: "A tag name per dag, to allow quick filtering in the DAG view."
Sources
- [S1] Dags. Apache Airflow docs. https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dags.html . License: Apache-2.0. Accessed 2026-11-20.
- [S2] dag.py (DagModel, tags). Apache Airflow source. https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/models/dag.py . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Apache Airflow docs, Dags; Apache Airflow source, dag.py (DagModel, tags). Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Apache Airflow docs, Dags; Apache Airflow source, dag.py (DagModel, tags). Apache-2.0.
Cite this
iinventedlight. 2026. "Declare an Airflow Dag as a scheduled workflow of tasks." iinventedlight Library, iil:note:3awma25n, version of 2026-11-20. https://iinventedlight.com/library/notes/airflow-dags/. License: CC-BY-4.0.
@misc{iil_note_3awma25n,
author = {{iinventedlight}},
title = {{Declare an Airflow Dag as a scheduled workflow of tasks}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/airflow-dags/},
note = {Permanent ID iil:note:3awma25n. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- airflow-dags.table.json (table; CC-BY-4.0)
- airflow-dags.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/airflow-dags.md.