Skip to main content

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_hooksdbt v1 Latestdbt v1
Introduced2024.031.8.0
Matured (default → true)2025.051.10.0
Removedv2.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' }}"
Report incorrect code

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0