Skip to content

Commit 8250baa

Browse files
authored
Fix: Run notifications (SQLMesh#1757)
* Default to prod environment in run_start notification * Fix run_failure notification message
1 parent 50b4296 commit 8250baa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sqlmesh/core/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def run(
459459
True if the run was successful, False otherwise.
460460
"""
461461
self.notification_target_manager.notify(
462-
NotificationEvent.RUN_START, environment=environment
462+
NotificationEvent.RUN_START, environment=environment or c.PROD
463463
)
464464
success = False
465465
try:
@@ -484,7 +484,7 @@ def run(
484484
)
485485
else:
486486
self.notification_target_manager.notify(
487-
NotificationEvent.RUN_FAILURE, environment=environment
487+
NotificationEvent.RUN_FAILURE, "See console logs for details."
488488
)
489489

490490
return success

0 commit comments

Comments
 (0)