Skip to content

Commit

Permalink
[router] make error actionable (#3063)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronHsu authored Jan 23, 2025
1 parent c0bf9bf commit 5de5065
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sgl-router/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ impl Router {
loop {
if start_time.elapsed() > Duration::from_secs(timeout_secs) {
error!(
"Timeout {}s waiting for workers to become healthy",
timeout_secs
"Timeout {}s waiting for workers {:?} to become healthy. Please set --router-worker-startup-timeout-secs (sglang_router.launch_server) or --worker-startup-timeout-secs (sglang_worker.router) to a larger value",
timeout_secs, worker_urls
);
return Err(format!(
"Timeout {}s waiting for workers to become healthy",
timeout_secs
"Timeout {}s waiting for workers {:?} to become healthy. Please set --router-worker-startup-timeout-secs (sglang_router.launch_server) or --worker-startup-timeout-secs (sglang_worker.router) to a larger value",
timeout_secs, worker_urls
));
}

Expand Down Expand Up @@ -644,11 +644,11 @@ impl Router {
loop {
if start_time.elapsed() > Duration::from_secs(timeout_secs) {
error!(
"Timeout {}s waiting for worker {} to become healthy",
"Timeout {}s waiting for worker {} to become healthy. Please set --router-worker-startup-timeout-secs (sglang_router.launch_server) or --worker-startup-timeout-secs (sglang_worker.router) to a larger value",
timeout_secs, worker_url
);
return Err(format!(
"Timeout {}s waiting for worker {} to become healthy",
"Timeout {}s waiting for worker {} to become healthy. Please set --router-worker-startup-timeout-secs (sglang_router.launch_server) or --worker-startup-timeout-secs (sglang_worker.router) to a larger value",
timeout_secs, worker_url
));
}
Expand Down

0 comments on commit 5de5065

Please sign in to comment.