-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 Java API Improvement #38961
Merged
Merged
Serve Java API Improvement #38961
Conversation
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
liuyang-my
force-pushed
the
serve-java-api-2.x
branch
from
September 11, 2023 17:18
521d345
to
45d0bcc
Compare
liuyang-my
force-pushed
the
serve-java-api-2.x
branch
from
September 22, 2023 06:14
45d0bcc
to
9fcf0a3
Compare
liuyang-my
force-pushed
the
serve-java-api-2.x
branch
from
October 1, 2023 07:43
9fcf0a3
to
d322507
Compare
liuyang-my
changed the title
[WIP] Serve Java API Improvement
Serve Java API Improvement
Oct 1, 2023
edoakes
reviewed
Oct 2, 2023
sihanwang41
reviewed
Oct 3, 2023
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.
Thanks for implementing, exciting to see Java moving to 2.x API!
Can you do some auditing?
- Add docstring for public API.
- Make private API if it is not exposed to users.
- Add all v1 API with deprecate decorator. (If possible, add deprecation warning in the decorator)
java/serve/src/main/java/io/ray/serve/handle/DeploymentHandle.java
Outdated
Show resolved
Hide resolved
java/serve/src/main/java/io/ray/serve/api/ServeControllerClient.java
Outdated
Show resolved
Hide resolved
java/serve/src/main/java/io/ray/serve/api/ServeControllerClient.java
Outdated
Show resolved
Hide resolved
* @param name application name | ||
* @param timeoutS unit: second | ||
*/ | ||
private void waitForApplicationRunning(String name, Long timeoutS) { |
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.
add check for APPLICATION_STATUS_UNHEALTHY
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
…support cross-language invocation in local mode. Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
2. Include some audit content. 3. DeploymentHandle.remote use the requestId from context. Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
liuyang-my
force-pushed
the
serve-java-api-2.x
branch
from
October 7, 2023 10:03
bb4848c
to
fe346be
Compare
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
sihanwang41
reviewed
Oct 8, 2023
sihanwang41
reviewed
Oct 9, 2023
…_apps. Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
Signed-off-by: chuhan.ly <chuhan.ly@antgroup.com>
edoakes
approved these changes
Oct 10, 2023
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
This is about Serve Java Improvement. The goal of this PR is to make the Java API consistent with Python.
The design of the user API is discussed in this proposal: ray-project/enhancements#42.
This PR only covers the Java programming API part, including
Deployment.bind
,Serve.run
,DeploymentHandle
, and so on, ensuring that these APIs can be used properly. The alignment of some internal core logic, documentation enhancements, and support for the config file will be submitted in subsequent PRs.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.