Skip to content

Commit

Permalink
Fix #9511: Handle exceptions for failing on-run-* hooks in `source …
Browse files Browse the repository at this point in the history
…freshness`
  • Loading branch information
aranke committed Mar 17, 2024
1 parent d65bae5 commit d8415a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240316-231152.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Handle exceptions for failing on-run-* hooks in source freshness
time: 2024-03-16T23:11:52.819014-07:00
custom:
Author: aranke
Issue: "9511"
6 changes: 5 additions & 1 deletion core/dbt/artifacts/schemas/freshness/v3/freshness.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ class FreshnessExecutionResultArtifact(

@classmethod
def from_result(cls, base: FreshnessResult):
processed = [process_freshness_result(r) for r in base.results]
processed = [

Check warning on line 110 in core/dbt/artifacts/schemas/freshness/v3/freshness.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/artifacts/schemas/freshness/v3/freshness.py#L110

Added line #L110 was not covered by tests
process_freshness_result(r)
for r in base.results
if isinstance(r, SourceFreshnessResult)
]
return cls(
metadata=base.metadata,
results=processed,
Expand Down

0 comments on commit d8415a7

Please sign in to comment.