From 5de50653cd52195c7effe4f58b284ab05ce04809 Mon Sep 17 00:00:00 2001 From: Byron Hsu Date: Wed, 22 Jan 2025 17:56:21 -0800 Subject: [PATCH] [router] make error actionable (#3063) --- sgl-router/src/router.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sgl-router/src/router.rs b/sgl-router/src/router.rs index 5bbffc74c..a189ff9eb 100644 --- a/sgl-router/src/router.rs +++ b/sgl-router/src/router.rs @@ -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 )); } @@ -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 )); }