"git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "20987e5f030fb52ae248f0f598bf4c0ab994e5b0"
Unverified Commit 5de50653 authored by Byron Hsu's avatar Byron Hsu Committed by GitHub
Browse files

[router] make error actionable (#3063)

parent c0bf9bf1
...@@ -238,12 +238,12 @@ impl Router { ...@@ -238,12 +238,12 @@ impl Router {
loop { loop {
if start_time.elapsed() > Duration::from_secs(timeout_secs) { if start_time.elapsed() > Duration::from_secs(timeout_secs) {
error!( error!(
"Timeout {}s waiting for workers to become healthy", "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 timeout_secs, worker_urls
); );
return Err(format!( return Err(format!(
"Timeout {}s waiting for workers to become healthy", "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 timeout_secs, worker_urls
)); ));
} }
...@@ -644,11 +644,11 @@ impl Router { ...@@ -644,11 +644,11 @@ impl Router {
loop { loop {
if start_time.elapsed() > Duration::from_secs(timeout_secs) { if start_time.elapsed() > Duration::from_secs(timeout_secs) {
error!( 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 timeout_secs, worker_url
); );
return Err(format!( 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 timeout_secs, worker_url
)); ));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment