File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3034,8 +3034,10 @@ def _run_janitor(
30343034 )
30353035 )
30363036 self .state_sync .compact_intervals ()
3037- elif ignore_ttl and target_snapshot_ids and not self .state_reader .get_environment (
3038- environment
3037+ elif (
3038+ ignore_ttl
3039+ and target_snapshot_ids
3040+ and not self .state_reader .get_environment (environment )
30393041 ):
30403042 self .console .log_warning (
30413043 "Scoped snapshot cleanup will permanently delete unreferenced physical snapshot "
Original file line number Diff line number Diff line change @@ -554,7 +554,9 @@ def test_invalidate_environment_cleanup_snapshots_warns_and_drops_physical_table
554554 )
555555 assert ctx .state_sync .get_environment ("dev" ) is None
556556 assert not ctx .state_sync .get_snapshots (snapshot_ids )
557- assert not any (ctx .engine_adapter .table_exists (table_name ) for table_name in physical_table_names )
557+ assert not any (
558+ ctx .engine_adapter .table_exists (table_name ) for table_name in physical_table_names
559+ )
558560
559561
560562def test_janitor_environment_ignore_ttl_cleans_only_scoped_snapshots (
You can’t perform that action at this time.
0 commit comments