Skip to content

Commit

Permalink
fix: don't process models that have already been processed (TobikoDat…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao authored Aug 26, 2024
1 parent 3e075da commit b43572f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sqlmesh/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,11 @@ def plan_builder(
if next_model not in snapshots:
continue
models_for_interval_end.add(next_model)
models_stack.extend([s.name for s in snapshots[next_model].parents])
models_stack.extend(
s.name
for s in snapshots[next_model].parents
if s.name not in models_for_interval_end
)

max_interval_end_per_model = self.state_sync.max_interval_end_per_model(
c.PROD,
Expand Down

0 comments on commit b43572f

Please sign in to comment.