Skip to content

Commit 57df1ed

Browse files
committed
Pass current_ts to cleanup_environments too
1 parent 1075a58 commit 57df1ed

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
@@ -2337,7 +2337,7 @@ def _run_janitor(self, ignore_ttl: bool = False) -> None:
23372337
current_ts = now_timestamp()
23382338

23392339
# Clean up expired environments by removing their views and schemas
2340-
self._cleanup_environments()
2340+
self._cleanup_environments(current_ts=current_ts)
23412341

23422342
_, cleanup_targets = self.state_sync.get_expired_snapshots(
23432343
ignore_ttl=ignore_ttl, current_ts=current_ts

0 commit comments

Comments
 (0)