I’m using the dbt Artifacts package to collect and insert information about runs, but I’m only getting information about runs that complete. The upload process is triggered by an on-run-end hook in dbt_project.yml and it looks like it’s not getting triggered when runs fail.
In a related post someone said that on-end-run hooks fire on unsuccessful models, so I’m a bit confused about what’s happening.
Is there a way to use on-run-end hooks or another method to upload information about failed runs with dbt Artifacts?
@Surya We are running with dbt version 1.5.1 (in case it ends up being useful, we are running with dbt Artifacts version 2.4.2).
Just to be super clear about this, I’m working with dbt cloud runs here (not local jobs). So we’re running dbt build with a lot of tables but something fails. Then when I inspect the run details in dbt cloud I don’t see the end hooks in the logs, and I don’t see any entries in my artifacts tables. I do see the end hooks for successful runs and the run artifacts are appearing in the tables created by dbt Artifacts.
@brunoszdl Thank you! We are using --fail-fast so that must be precluding the on-run-end hook. I don’t suppose there’s any kind of alternative to fire off end hooks when using --fail-fast?