[KV Offload] Add on_schedule_end() hook to separate step lifecycle from event draining (#44206)

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
This commit is contained in:
Ronen Schaffer
2026-06-02 13:42:52 +03:00
committed by GitHub
parent 689b0eeb9e
commit 2a2b5ca791
5 changed files with 55 additions and 40 deletions
+8
View File
@@ -257,6 +257,14 @@ class OffloadingManager(ABC):
"""
return ()
def on_schedule_end(self) -> None:
"""Called once at the end of each scheduler step.
Managers may override this to flush deferred work accumulated
during the step (e.g., batched promotions).
"""
return
def reset_cache(self) -> None:
"""Evict all tracked blocks and reset internal state."""
return