r/DataBuildTool • • 1d ago

Show and tell Running Long-Lived dbt Workloads on BigQuery Without Consuming Airflow Workers

https://medium.com/dbt-for-analytics/running-long-lived-dbt-workloads-on-bigquery-without-consuming-airflow-workers-1a642d010296

An advanced guide to optimizing Apache Airflow orchestration through asynchronous execution, Deferrable Operators, Cloud Run Jobs and efficient workload management.

4 Upvotes

2 comments sorted by

1

u/DuckDatum 1d ago

DBT only needs to trigger execution and check result. “Long-lived” DBT workloads has always seemed like a weird problem invented by the tool. Surely an ephemeral execution process would be better? Ideally if it could die when waiting and being resumed. Then cheap serverless infra could boot every 5 minutes or so to check if any downstream work has become available. If available, it runs again until waiting then dies again.

1

u/DuckDatum 1d ago

Instead we pay expensive hosting costs simply to wait around on external query engines to finish their work. Ludacris.