Skip to content

Commit 5b084d4

Browse files
committed
fix: raise Exception if any model failed to materialize
1 parent 1d15b14 commit 5b084d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dagster_sqlmesh/resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def report_event(self, event: console.ConsoleEvent) -> None:
214214
[f"{model!s}\n{model.__cause__!s}" for model in models]
215215
)
216216
log_context.error(f"sqlmesh failed models: {failed_models}")
217+
raise Exception("sqlmesh has failed models")
217218
case console.UpdatePromotionProgress(snapshot, promoted):
218219
log_context.info(
219220
"Promotion progress update",

0 commit comments

Comments
 (0)