fix(supervisor): use sqlmesh plan --auto-apply instead of run
'run' requires the prod environment to already exist. 'plan --auto-apply' initializes the environment on first run and applies pending changes on subsequent runs — fully self-healing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -250,7 +250,7 @@ def run_transform() -> None:
|
||||
"""Run SQLMesh — it evaluates model staleness internally."""
|
||||
logger.info("Running SQLMesh transform")
|
||||
ok = run_shell(
|
||||
"uv run sqlmesh -p transform/sqlmesh_padelnomics run prod",
|
||||
"uv run sqlmesh -p transform/sqlmesh_padelnomics plan prod --auto-apply",
|
||||
)
|
||||
if not ok:
|
||||
send_alert("SQLMesh transform failed")
|
||||
|
||||
Reference in New Issue
Block a user