Skip to content

Commit 2344893

Browse files
cpgaffney1Orbax Authors
authored andcommitted
#v1 Add Checkpointer.wait method.
PiperOrigin-RevId: 829067123
1 parent b59d0f5 commit 2344893

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

checkpoint/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.11.28] - 2025-11-06
11+
1012
### Added
1113

14+
- #v1 `Checkpointer.wait` method.
1215
- Added `register_pathways_handlers` to `ocp.type_handlers`
1316

1417
## [0.11.27] - 2025-11-04

checkpoint/orbax/checkpoint/experimental/v1/_src/training/checkpointer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,10 @@ def is_saving_in_progress(self) -> bool:
518518
"""Whether a checkpoint is currently being saved in the background."""
519519
return self._manager.is_saving_in_progress()
520520

521+
def wait(self):
522+
"""Waits for any outstanding async operations to complete."""
523+
self._manager.wait_until_finished()
524+
521525
def close(self):
522526
"""Ensures any outstanding async operations are completed before closing."""
523527
self._manager.close()

checkpoint/orbax/checkpoint/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# A new PyPI release will be pushed everytime `__version__` is increased.
1818
# Also modify version and date in CHANGELOG.
1919
# LINT.IfChange
20-
__version__ = '0.11.27'
20+
__version__ = '0.11.28'
2121
# LINT.ThenChange(//depot//orbax/checkpoint/CHANGELOG.md)
2222

2323

0 commit comments

Comments
 (0)