-
Notifications
You must be signed in to change notification settings - Fork 7k
[serve] Check if proxy is ready to serve traffic #57723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1055,6 +1055,18 @@ async def ready(self) -> str: | |
| """ | ||
| pass | ||
|
|
||
| @abstractmethod | ||
| async def serving(self, wait_for_applications_running: bool = True) -> None: | ||
| """Wait for the proxy to be ready to serve requests. | ||
|
|
||
| Args: | ||
| wait_for_applications_running: Whether to wait for the applications to be running | ||
|
|
||
| Returns: | ||
| None | ||
| """ | ||
| pass | ||
|
|
||
| @abstractmethod | ||
| async def update_draining( | ||
| self, draining: bool, _after: Optional[Any] = None | ||
|
|
@@ -1308,6 +1320,10 @@ async def ready(self) -> str: | |
| ] | ||
| ) | ||
|
|
||
| async def serving(self, wait_for_applications_running: bool = True) -> None: | ||
| """Wait for the proxy to be ready to serve requests.""" | ||
| return | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Proxy Serving Method Fails Readiness CheckThe |
||
|
|
||
| async def update_draining(self, draining: bool, _after: Optional[Any] = None): | ||
| """Update the draining status of the HTTP and gRPC proxies. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to check if serving_refs is non empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think so.
ray.wait()would return two empty lists for done and pending. tested this out locally: