From ea6275dfbc263216c79fcde4abc56363400bde23 Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Sun, 19 Oct 2025 16:10:20 +0800 Subject: [PATCH] Tiny add hints when users send requests to wrong place (#11808) --- python/sglang/srt/managers/data_parallel_controller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/sglang/srt/managers/data_parallel_controller.py b/python/sglang/srt/managers/data_parallel_controller.py index cbf14149e..6209852ad 100644 --- a/python/sglang/srt/managers/data_parallel_controller.py +++ b/python/sglang/srt/managers/data_parallel_controller.py @@ -447,6 +447,9 @@ class DataParallelController: self.workers ) else: + assert ( + req.bootstrap_room is not None + ), "req.bootstrap_room should not be None. Do not send requests directly to prefill or decode instances, but send to the router instead." self.workers[req.bootstrap_room % len(self.workers)].send_pyobj(req) def shortest_queue_scheduler(self, req):