[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user