From fd889097dc271e53734faec2a415818de950b2e5 Mon Sep 17 00:00:00 2001 From: Pai Liu Date: Thu, 14 May 2026 13:54:25 +1000 Subject: [PATCH] [Bug Fix] Add priority property to DecodeRequest to fix AttributeError with --enable-priority-scheduling (#25064) --- python/sglang/srt/disaggregation/decode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/sglang/srt/disaggregation/decode.py b/python/sglang/srt/disaggregation/decode.py index b9f8e5994..3cdf2af17 100644 --- a/python/sglang/srt/disaggregation/decode.py +++ b/python/sglang/srt/disaggregation/decode.py @@ -252,6 +252,10 @@ class DecodeRequest: def seqlen(self) -> int: return self.req.seqlen + @property + def priority(self) -> Optional[int]: + return self.req.priority + class DecodePreallocQueue: """