[KV Offload] Rename SecondaryTierManager.get_finished() to get_finished_jobs() (#43870)

Signed-off-by: Ronen Schaffer <ronen.schaffer@ibm.com>
This commit is contained in:
Ronen Schaffer
2026-05-28 16:00:18 +00:00
committed by GitHub
parent 5d126dd155
commit 4bfa0f2b14
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -72,14 +72,14 @@ def make_job(
def drain(tier: FileSystemTierManager, max_rounds: int = 40) -> list:
"""
Call get_finished() repeatedly until no new results arrive for 5
Call get_finished_jobs() repeatedly until no new results arrive for 5
consecutive rounds or max_rounds is reached.
"""
results = []
idle = 0
for _ in range(max_rounds):
time.sleep(0.01)
new = list(tier.get_finished())
new = list(tier.get_finished_jobs())
results.extend(new)
if new:
idle = 0
@@ -184,7 +184,7 @@ class TestTieringOffloadingManager:
# End of step 1: _maybe_process_finished_jobs() was already called by
# prepare_store() above (setting the per-step flag), so take_events()
# does NOT poll get_finished() again — cascade completions remain
# does NOT poll get_finished_jobs() again — cascade completions remain
# unprocessed until the next step.
list(self.manager.take_events())