Skip to content

Commit 3ddfbf0

Browse files
authored
fix: raise Exception if any model failed to materialize (#34)
1 parent 1d15b14 commit 3ddfbf0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
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",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dagster-sqlmesh"
3-
version = "0.11.0"
3+
version = "0.11.1"
44
description = ""
55
authors = [
66
{name = "Reuven Gonzales", email = "reuven@karibalabs.co"}

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)