From 6f3de2af863cff95ff55a587003faf2b776fec65 Mon Sep 17 00:00:00 2001 From: Archit Kulkarni Date: Thu, 9 Jun 2022 14:50:48 -0700 Subject: [PATCH] [Serve] Fix outdated Serve warning message for sync handle (#25453) --- python/ray/serve/client.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python/ray/serve/client.py b/python/ray/serve/client.py index e8c556b9d..33ce0e970 100644 --- a/python/ray/serve/client.py +++ b/python/ray/serve/client.py @@ -415,18 +415,18 @@ class ServeControllerClient: if asyncio_loop_running and sync and _WARN_SYNC_ASYNC_HANDLE_CONTEXT: logger.warning( "You are retrieving a sync handle inside an asyncio loop. " - "Try getting client.get_handle(.., sync=False) to get better " - "performance. Learn more at https://docs.ray.io/en/master/" - "serve/http-servehandle.html#sync-and-async-handles" + "Try getting Deployment.get_handle(.., sync=False) to get better " + "performance. Learn more at https://docs.ray.io/en/latest/serve/" + "handle-guide.html#sync-and-async-handles" ) if not asyncio_loop_running and not sync and _WARN_SYNC_ASYNC_HANDLE_CONTEXT: logger.warning( "You are retrieving an async handle outside an asyncio loop. " - "You should make sure client.get_handle is called inside a " - "running event loop. Or call client.get_handle(.., sync=True) " - "to create sync handle. Learn more at https://docs.ray.io/en/" - "master/serve/http-servehandle.html#sync-and-async-handles" + "You should make sure Deployment.get_handle is called inside a " + "running event loop. Or call Deployment.get_handle(.., sync=True) " + "to create sync handle. Learn more at https://docs.ray.io/en/latest/" + "serve/handle-guide.html#sync-and-async-handles" ) if sync: