refactor: separate checkpoint store maintenance from snapshots
Move retention, orphan pruning, status and clear operations into a topical sibling and route callers and tests directly to their defining module. Keep the shared store paths and git execution in checkpoint_manager; shorten the local child-env WHAT docstring.
This commit is contained in:
@@ -4777,7 +4777,7 @@ def _housekeeping_checkpoint_prune() -> None:
|
||||
"""Checkpoint store retention + size cap on a live timer; ``auto_prune_from_config`` gates on
|
||||
``checkpoints.auto_prune`` and the 24h ``.last_prune`` marker. Off the startup path because its
|
||||
``git gc`` can block for tens of seconds on a large store."""
|
||||
from tools.checkpoint_manager import auto_prune_from_config
|
||||
from tools.checkpoint_maintenance import auto_prune_from_config
|
||||
auto_prune_from_config()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user