Get the most recent checkpoint ID.
()
| 268 | |
| 269 | |
| 270 | def get_latest_checkpoint() -> Optional[str]: |
| 271 | """Get the most recent checkpoint ID.""" |
| 272 | state = get_state_store() |
| 273 | checkpoints = state.get_checkpoints(1) |
| 274 | return checkpoints[0]["id"] if checkpoints else None |
| 275 | |
| 276 | |
| 277 | def prune_checkpoints(keep_count: int = 5): |
nothing calls this directly
no test coverage detected