[Bugfix][MooncakeStore] Fix finish-time save crash on hybrid models (#54643)

Signed-off-by: zhewenl <zhewenl@users.noreply.github.com>
Co-authored-by: zhewenl <zhewenl@users.noreply.github.com>
This commit is contained in:
Zhewen Li
2026-09-07 07:18:30 +00:00
committed by GitHub
co-authored by zhewenl
parent 195bc9c4a1
commit 34b1e9f7a6
2 changed files with 33 additions and 1 deletions
@@ -372,7 +372,12 @@ class MooncakeStoreScheduler:
) in self._unfinished_requests.items():
if request_id not in request_ids and request_id not in cached_reqs.req_ids:
load_spec = self.load_specs.pop(request_id, None)
if not load_spec:
# A load spec may have been proposed by this connector's
# lookup but rejected by MultiConnector in favor of another
# connector. Only the chosen connector may issue the pending
# load; the normal store path gets its blocks later from
# SchedulerOutput once the request is actually scheduled.
if load_spec is None or not load_spec.can_load:
continue
num_tokens_to_compute = load_spec.kvpool_cached_tokens
request_tracker = RequestTracker(