diff --git a/sqlmesh/core/context.py b/sqlmesh/core/context.py index d7aa873394..495c8c40f9 100644 --- a/sqlmesh/core/context.py +++ b/sqlmesh/core/context.py @@ -620,8 +620,11 @@ def load(self, update_schemas: bool = True) -> GenericContext[C]: if snapshot.node.project in self._projects: uncached.add(snapshot.name) else: - store = self._standalone_audits if snapshot.is_audit else self._models - store[snapshot.name] = snapshot.node # type: ignore + local_store = self._standalone_audits if snapshot.is_audit else self._models + if snapshot.name in local_store: + uncached.add(snapshot.name) + else: + local_store[snapshot.name] = snapshot.node # type: ignore for model in self._models.values(): self.dag.add(model.fqn, model.depends_on)