[Bugfix][Core] running queue index leakage exception (#26754)

Signed-off-by: CLFutureX <chenyongqyl@163.com>
This commit is contained in:
PiteXChen 2025-10-23 12:40:12 +08:00 committed by GitHub
parent 7e0941055f
commit 243ed7d32e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -278,6 +278,7 @@ class Scheduler(SchedulerInterface):
token_budget += num_scheduled_tokens[preempted_req.request_id]
req_to_new_blocks.pop(preempted_req.request_id)
num_scheduled_tokens.pop(preempted_req.request_id)
req_index -= 1
else:
preempted_req = self.running.pop()