[CT-1003] run_results.json not generated when on-run-end fails #5625
Labels
artifacts
bug
Something isn't working
support_rotation
A good task to pick up during support rotation
Is this a new bug in dbt-core?
Current Behavior
The dbt artifact
run_results.json
is not generated when a statement in theon-run-end
fails. This behavior does not occur when the statement fails in a post-hook.Expected Behavior
run_results.json
must be generated even if a statement fails at theon-run-end
and must contain dbt model execution results to indicate which models ran successfully or failed.Steps To Reproduce
dbt init
dbt build
and confirmtarget/run_results.json
exists.dbt clean
to remove thetarget
directory.on-run-end: "select col1"
in thedbt_project.yml
and it causes dbt aDatabase error
.dbt build
and confirmtarget/run_results.json
does not exist.Relevant log output
No response
Environment
Which database adapter are you using with dbt?
postgres, redshift
Additional Context
No response
The text was updated successfully, but these errors were encountered: