Skip to content

Commit 448ee7b

Browse files
committed
Pass current_ts to cleanup_environments too
1 parent c97a0ae commit 448ee7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlmesh/core/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2353,7 +2353,7 @@ def _run_janitor(self, ignore_ttl: bool = False) -> None:
23532353
current_ts = now_timestamp()
23542354

23552355
# Clean up expired environments by removing their views and schemas
2356-
self._cleanup_environments()
2356+
self._cleanup_environments(current_ts=current_ts)
23572357

23582358
_, cleanup_targets = self.state_sync.get_expired_snapshots(
23592359
ignore_ttl=ignore_ttl, current_ts=current_ts

0 commit comments

Comments
 (0)