Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
446c8e4c
Unverified
Commit
446c8e4c
authored
Aug 23, 2025
by
Bruce-x-1997
Committed by
GitHub
Aug 22, 2025
Browse files
[router] ignore client error when record failure in pd_router (#9503)
Co-authored-by:
bruce.xu
<
bruce.xu@gmicloud.ai
>
parent
5ef545e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sgl-router/src/routers/pd_router.rs
sgl-router/src/routers/pd_router.rs
+4
-3
No files found.
sgl-router/src/routers/pd_router.rs
View file @
446c8e4c
...
@@ -786,9 +786,10 @@ impl PDRouter {
...
@@ -786,9 +786,10 @@ impl PDRouter {
.await
;
.await
;
// Record outcomes for circuit breakers
// Record outcomes for circuit breakers
let
is_success
=
response
.status
()
.is_success
();
let
_
status
=
response
.status
();
prefill
.record_outcome
(
is_success
);
let
not_error
=
_
status
.is_success
()
||
_
status
.is_client_error
();
decode
.record_outcome
(
is_success
);
prefill
.record_outcome
(
not_error
);
decode
.record_outcome
(
not_error
);
response
response
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment