Concepts¶
These are the building blocks you see in the product. For the engine itself, read What is Apache Airflow?. For one-line definitions, see the Glossary.
Workspace¶
A workspace is your team's area. It holds Dags, shared files, packages, connections, variables and every run. People are added to a workspace with a role. Work in one workspace is not visible from another.
Deployment¶
A deployment is the runtime that executes a workspace's Dags. Most teams have one deployment per workspace. You do not manage servers, workers or upgrades; DagForge runs the deployment for you.
Dag¶
A Dag is a workflow: a set of tasks and the dependencies between them, plus a
schedule. You can write a Dag as Python or YAML. A Dag is identified by its
dag_id, which is unique inside the workspace.
Run¶
A run is one execution of a Dag. It starts as queued, moves to running, and
ends as success or failed. A run has a run_id, a logical date and the
trigger that started it — schedule, manual trigger, API request or backfill.
Task¶
A task is one step inside a Dag. Tasks can retry, and each attempt has its own log.
Task instance¶
A task instance is one attempt of a task in one run. It has a state, a try number, logs and (optionally) an XCom result. When you open a run, you see one task instance per task.
XCom¶
An XCom is a value one task shares with another. A producer writes a value under a key; a consumer reads it by key. Use XComs for small values, not for files.
Asset¶
An asset is a data-aware dependency. A Dag can produce an asset and another can schedule on it. See Assets.
Schedule¶
A schedule tells DagForge when to create runs: a cron expression, a preset such
as @daily, or no schedule for manually triggered Dags. A backfill creates runs
over a date range in the past.
Connections, variables and pools¶
- Connection — stored credentials for an external system, referenced by
conn_id. - Variable — a workspace-level key/value pair you read from a Dag.
- Pool — a limit on how many tasks can run at the same time.
Connections and variables are scoped to the workspace. Pools are managed for the workspace and are read-only in the product.
Roles¶
Workspace roles are separate from organization roles (owner, admin, member).
| Role | Can do |
|---|---|
| Viewer | Read Dags, runs, logs and chat |
| User | Viewer plus create and edit Dags and runs |
| Op | User plus connections, variables and the API Platform |
| Admin | Workspace administration |
See Access and roles.
Isolation¶
Every workspace has its own Dag roots, package releases, logs, queues and runs. A Dag in one workspace cannot read another workspace's files, packages, logs or data. API requests are scoped by the workspace prefix in the URL.