-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[serve] Enable streaming over
ServeHandle
s (#37114)
Adds support for `handle.options(stream=True)` to make streaming calls using the `RayServeHandle`. This required two changes: - Adding `stream=True` to the `.options` codepaths. - Adding a branch in `handle_request_streaming` to handle calls from the HTTP proxy as well as other handle calls. I also refactored some of the code around exception handling/metrics into a common context manager that's used by both codepaths.
- Loading branch information
Showing
12 changed files
with
646 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.