From 0d031335ede72766ebdfe453e3cd945a8d708e65 Mon Sep 17 00:00:00 2001 From: Jonah Bernard <96398205+Jonahcb@users.noreply.github.com> Date: Fri, 17 Apr 2026 02:50:47 -0400 Subject: [PATCH] [Pipeline Parallelism][Bug] Fix scheduler hang in pipeline parallelism setup (#23006) --- python/sglang/srt/managers/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/srt/managers/scheduler.py b/python/sglang/srt/managers/scheduler.py index 7bb566aec..bf7d45879 100644 --- a/python/sglang/srt/managers/scheduler.py +++ b/python/sglang/srt/managers/scheduler.py @@ -2459,7 +2459,7 @@ class Scheduler( # Instead, we should always allow chunked requests to be added, otherwise, there will be a memory leak. if ( self.get_num_allocatable_reqs(running_bs) <= 0 - and self.chunked_req is not None + and self.chunked_req is None and not self.enable_priority_preemption ): self.running_batch.batch_is_full = True