File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,14 @@ def _checkpoint_impl(
193193 with get_timing_context (state , f"{ self .__class__ .__name__ } .async_save" ):
194194 # Redundant check for safety
195195 self ._wait (log_warning = True )
196- self . _prev_snapshot = dcp .async_save (
196+ prev_snapshot = dcp .async_save (
197197 state_dict = {"app_state" : MultiStateful (app_state )},
198198 checkpoint_id = checkpoint_id ,
199199 process_group = self ._process_group ,
200200 storage_writer = storage_writer ,
201201 planner = planner ,
202202 )
203+ self ._prev_snapshot = cast (Future , prev_snapshot )
203204 if curr_snapshot_wait :
204205 self ._wait (log_warning = False )
205206 else :
Original file line number Diff line number Diff line change 1313from typing import (
1414 Any ,
1515 Callable ,
16- cast ,
1716 Collection ,
1817 ContextManager ,
1918 Dict ,
You can’t perform that action at this time.
0 commit comments