You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[serve] Add new DeploymentHandle type that returns DeploymentResponse (#37817)
Adds new DeploymentHandle that removes the need for "double await" and also unifies the sync & async handle types. See docstrings for detailed API information.
The new API can be used either by setting `RAY_SERVE_ENABLE_NEW_HANDLE_API=1` at the cluster level or by using `handle.options(use_new_handle_api=True)`.
The migration plan is as follows:
- In Ray 2.7, we will be fully backwards-compatible and users will need to opt-in to use the new API (via environment variable or .options() flag).
- The documentation and other docstrings will be updated to push users to use the new handle type and warn that the existing one will be deprecated.
- Starting in Ray 2.8, we will print deprecation warnings when users use the existing handle API.
- In Ray 3.0, the default will be changed to use the new handle.
0 commit comments