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
48738af7
Unverified
Commit
48738af7
authored
Oct 20, 2025
by
Liangsheng Yin
Committed by
GitHub
Oct 20, 2025
Browse files
[CI] always print back trace in `retry()` (#11834)
parent
efa47334
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/utils/common.py
python/sglang/srt/utils/common.py
+2
-1
No files found.
python/sglang/srt/utils/common.py
View file @
48738af7
...
@@ -2354,6 +2354,8 @@ def retry(
...
@@ -2354,6 +2354,8 @@ def retry(
try
:
try
:
return
fn
()
return
fn
()
except
Exception
as
e
:
except
Exception
as
e
:
traceback
.
print_exc
()
if
try_index
>=
max_retry
:
if
try_index
>=
max_retry
:
raise
Exception
(
f
"retry() exceed maximum number of retries."
)
raise
Exception
(
f
"retry() exceed maximum number of retries."
)
...
@@ -2367,7 +2369,6 @@ def retry(
...
@@ -2367,7 +2369,6 @@ def retry(
logger
.
warning
(
logger
.
warning
(
f
"retry() failed once (
{
try_index
}
th try, maximum
{
max_retry
}
retries). Will delay
{
delay
:.
2
f
}
s and retry. Error:
{
e
}
"
f
"retry() failed once (
{
try_index
}
th try, maximum
{
max_retry
}
retries). Will delay
{
delay
:.
2
f
}
s and retry. Error:
{
e
}
"
)
)
traceback
.
print_exc
()
time
.
sleep
(
delay
)
time
.
sleep
(
delay
)
...
...
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