← All notes

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

Sources

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

Permanent ID: iil:note:3awma25n

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.},
}

Markdown

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.

All artifact files (JSON index)

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.