Skip to content
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

[serve] Deprecate passing DeploymentResponse to handle #46806

Merged
merged 6 commits into from
Aug 5, 2024

Conversation

zcin
Copy link
Contributor

@zcin zcin commented Jul 25, 2024

Why are these changes needed?

Deprecate passing a deployment response to a handle by reference (docs).

Supporting this requires using pyobjscanner to recursively process and pickle dump all args, which adds to the latency especially for large payloads.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

zcin added 3 commits July 25, 2024 16:29
Signed-off-by: Cindy Zhang <[email protected]>
Signed-off-by: Cindy Zhang <[email protected]>
Signed-off-by: Cindy Zhang <[email protected]>
@zcin zcin marked this pull request as ready for review July 26, 2024 21:40
@@ -449,6 +449,13 @@ async def _resolve_deployment_responses(
)
elif isinstance(obj, DeploymentResponse):
responses.append(obj)
if obj not in request_args and obj not in request_kwargs.values():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you've tested that this check works and we don't spuriously print?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, this will only print for deployment response objects that weren't passed in as top level args/kwargs.

@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jul 31, 2024
@edoakes edoakes enabled auto-merge (squash) August 1, 2024 18:55
@github-actions github-actions bot disabled auto-merge August 1, 2024 18:55
@edoakes edoakes merged commit b514157 into ray-project:master Aug 5, 2024
5 checks passed
@zcin zcin deleted the deprecate-dep-resp-arg branch August 21, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants