Skip to content

Commit 2a19737

Browse files
authored
Fix: Fix the total number of tasks for the snapshot creation progress bar (#1161)
1 parent 3f46ccb commit 2a19737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlmesh/core/plan/evaluator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def _push(self, plan: Plan) -> None:
118118
"""
119119
snapshot_id_to_snapshot = {s.snapshot_id: s for s in plan.snapshots}
120120

121-
self.console.start_creation_progress(plan.environment.name, len(snapshot_id_to_snapshot))
121+
if plan.new_snapshots:
122+
self.console.start_creation_progress(plan.environment.name, len(plan.new_snapshots))
122123

123124
def on_complete(snapshot: SnapshotInfoLike) -> None:
124125
self.console.update_creation_progress(1)

0 commit comments

Comments
 (0)