[Bugfix][Core] Allow AuxOutput reset after abort without running requests (#59060)

Signed-off-by: aoshen02 <aoshen@inferact.ai>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
aoshen02
2026-09-29 09:23:32 +00:00
committed by GitHub
co-authored by OpenAI Codex
parent 3e2a7e74a5
commit 4861833ae2
2 changed files with 1 additions and 17 deletions
-10
View File
@@ -2781,16 +2781,6 @@ class Scheduler(SchedulerInterface):
Otherwise, this method will only reset the KV prefix cache when there
is no running requests taking KV cache.
"""
if reset_running_requests and self.aux_output_connector is not None:
if self._pause_state != PauseState.PAUSED_ALL:
raise RuntimeError(
"AuxOutput Connector only supports resetting running requests "
"after pause(mode='keep')."
)
if any(request.num_in_flight_tokens for request in self.requests.values()):
raise RuntimeError(
"AuxOutput Connector cannot reset while model output is in flight."
)
if reset_running_requests:
# For logging.
timestamp = time.monotonic()