[BugFix]Remove duplicate code (#309)

Signed-off-by: princepride <wangzhipeng628@gmail.com>
This commit is contained in:
汪志鹏 authored and GitHub committed 2025-12-15 01:42:55 +00:00
1 parent c52270cfee
commit 6c333161a4
1 file changed
+1 -2
@@ -275,8 +275,7 @@ class OmniGenerationScheduler(VLLMScheduler):
# Remove the stopped requests from the running and waiting queues.
if stopped_running_reqs:
if stopped_running_reqs:
self.running = remove_all(self.running, stopped_running_reqs)
self.running = remove_all(self.running, stopped_running_reqs)
if stopped_preempted_reqs:
# This is a rare case and unlikely to impact performance.
self.waiting.remove_requests(stopped_preempted_reqs)