Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
  • Loading branch information
zcin committed Aug 12, 2024
1 parent 965e61a commit 2dd489c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions python/ray/serve/_private/proxy_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ def update_routes(self, endpoints: Dict[DeploymentID, EndpointInfo]) -> None:
else:
# Eagerly initialize the router for each handle so it can receive
# the replica set from the controller.
handle = self._get_handle(
endpoint.name, endpoint.app_name, _lazily_initialize_router=False
).options(
handle = self._get_handle(endpoint.name, endpoint.app_name,).options(
# Streaming codepath isn't supported for Java.
stream=not info.app_is_cross_language,
_prefer_local_routing=RAY_SERVE_PROXY_PREFER_LOCAL_NODE_ROUTING,
Expand Down Expand Up @@ -153,9 +151,7 @@ def update_routes(self, endpoints: Dict[DeploymentID, EndpointInfo]):
else:
# Eagerly initialize the router for each handle so it can receive
# the replica set from the controller.
handle = self._get_handle(
endpoint.name, endpoint.app_name, _lazily_initialize_router=False
).options(
handle = self._get_handle(endpoint.name, endpoint.app_name).options(
# Streaming codepath isn't supported for Java.
stream=not info.app_is_cross_language,
_prefer_local_routing=RAY_SERVE_PROXY_PREFER_LOCAL_NODE_ROUTING,
Expand Down
2 changes: 1 addition & 1 deletion python/ray/serve/handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _options(
_source=_source,
)

if self._router is None and _prefer_local_routing == DEFAULT.VALUE:
if self._router is None:
self._get_or_create_router()

return DeploymentHandle(
Expand Down

0 comments on commit 2dd489c

Please sign in to comment.