Project hooks with source freshness
Removed in v2
This flag was removed in v2. The new behavior is always enabled. If you're upgrading, remove this flag from your dbt_project.yml.
| source_freshness_run_project_hooks | dbt v1 Latest | dbt v1 |
|---|---|---|
| Introduced | 2024.03 | 1.8.0 |
Matured (default → true) | 2025.05 | 1.10.0 |
| Removed | — | v2.0 |
Project hooks (on-run-start / on-run-end) now run as part of the dbt source freshness command by default. Previously, hooks did not execute during dbt source freshness.
If you have hooks that should not run before or after dbt source freshness, add a conditional check:
dbt_project.yml
on-run-start:
- "{{ ... if flags.WHICH != 'freshness' }}"
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0