From 08957c88eab997a7a87f2c735cfdf8573102e6f8 Mon Sep 17 00:00:00 2001 From: YAMY <74099316+YAMY1234@users.noreply.github.com> Date: Wed, 25 Feb 2026 12:42:18 -0800 Subject: [PATCH] [Logging] Fix prefill side logging in pd disagg (#19350) --- python/sglang/srt/disaggregation/prefill.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/sglang/srt/disaggregation/prefill.py b/python/sglang/srt/disaggregation/prefill.py index cddf469f7..36f44bb10 100644 --- a/python/sglang/srt/disaggregation/prefill.py +++ b/python/sglang/srt/disaggregation/prefill.py @@ -535,6 +535,14 @@ class SchedulerDisaggregationPrefillMixin: self.maybe_send_health_check_signal() + if self.current_scheduler_metrics_enabled: + can_run_cuda_graph = getattr(result, "can_run_cuda_graph", False) + self.log_prefill_stats( + prefill_stats=batch.prefill_stats, + can_run_cuda_graph=can_run_cuda_graph, + dp_cooperation_info=batch.dp_cooperation_info, + ) + def process_disagg_prefill_inflight_queue( self: Scheduler, rids_to_check: Optional[List[str]] = None ) -> List[Req]: