Assets¶
An asset is a data-aware dependency. A Dag can declare that it produces an asset, and another Dag can schedule on that asset instead of on a clock.
Assets list¶
Assets lists the assets in the workspace with their producers and consumers. Open an asset to see its detail.
Asset detail¶
| Tab | Shows |
|---|---|
| Events | Updates to the asset — who produced it, when, and for which partition |
| State store | The current writers and state for the asset |
Scheduling on an asset¶
A Dag can schedule on one or more assets. When a producer updates the asset, the scheduler creates a run for each consumer whose dependencies are met. This is how you chain Dags by data rather than by time.
Example¶
At a high level:
- Dag A loads a table and declares the table as an asset outlet.
- Dag B declares the same asset as its schedule.
- When Dag A finishes and marks the asset updated, Dag B runs.
The exact code depends on the operator you use. The asset model is Airflow's; DagForge adds the workspace isolation and the UI around it.
Limits and notes¶
- Assets are scoped to the workspace. A Dag cannot schedule on another workspace's asset.
- An asset event is a fact, not a queue. If a consumer cannot run, the event is still recorded.