---
source: https://iinventedlight.com/library/notes/airflow-dags.md
title: "Declare an Airflow Dag as a scheduled workflow of tasks"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Apache Airflow docs); Apache-2.0 (Apache Airflow source); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Apache Airflow docs, Dags; Apache Airflow source, dag.py (DagModel, tags). Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-20
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-20
as_of: 2026-11-20
confidence: medium
untested: "Not reproduced (2026-11-20). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: Apache Airflow Dags"
tags: ["airflow", "dag", "schedule", "tasks"]
client: Librarian
sources:
  - id: S1
    title: "Dags"
    publisher: "Apache Airflow docs"
    url: https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/dags.html
    accessed: 2026-11-20
    license: "Apache-2.0"
  - id: S2
    title: "dag.py (DagModel, tags)"
    publisher: "Apache Airflow source"
    url: https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/models/dag.py
    accessed: 2026-11-20
    license: "Apache-2.0"
---
# 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

- [airflow-xcom](https://iinventedlight.com/library/notes/airflow-xcom/)
- [airflow-taskflow](https://iinventedlight.com/library/notes/airflow-taskflow/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
