Understand dbt-af DAG generation patterns
mainWhen using dbt-af, DAGs are generated based on domain-oriented structures and scheduling annotations.
Key patterns include:
- Scheduling-based DAGs: Models with specific scheduling annotations (e.g.,
@daily,@hourly) are grouped into unified DAGs named after their domain and schedule (e.g.,svc_jaffle_shop__dailyorsvc_jaffle_shop__hourly). - Cross-scheduling dependencies: If a model in an hourly DAG depends on a model in a daily DAG,
dbt-afresolves this using Airflowwaits(sensors). - Backfill DAGs: For every domain,
dbt-afgenerates a backfill DAG following the pattern<domain_name>__backfill. These DAGs have@dailyscheduling but are intended for manual triggering to recover data in case of issues with regular DAGs.