Orchestrate any dbt project with bullet-proof retries, observability, and a single Python file – no YAML or shell scripts required.
Note: This example uses dbt Core (the open-source CLI). For dbt Cloud integration, see the dbt Cloud examples in the Prefect documentation.This example demonstrates these Prefect features:
@task
– wrap dbt commands in retries & observability.log_prints
– surface dbt output automatically in Prefect logs.deps
, seed
, run
, and test
.DbtCoreOperation
for enhanced logging, failure handling, and automatic event emission.prefect_dbt_project/demo.duckdb
ready for analysis.