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] Implement serve.run() and Application #23157

Merged
merged 125 commits into from
Mar 18, 2022

Conversation

shrekris-anyscale
Copy link
Contributor

@shrekris-anyscale shrekris-anyscale commented Mar 14, 2022

Why are these changes needed?

These changes expose Application as a public API. They also introduce a new public method, serve.run(), which allows users to deploy their Applications or DeploymentNodes. Additionally, the Serve CLI's run command and Serve's REST API are updated to use Applications and serve.run().

Related issue number

Resolves parts of #23137, #23138, #23139.

Checks

  • 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 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

@shrekris-anyscale shrekris-anyscale changed the title [serve] Make run public API [serve] Implement serve.run() and Application Mar 17, 2022
@shrekris-anyscale shrekris-anyscale removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Mar 17, 2022
"""
return cls.from_dict(yaml.safe_load(str_or_file))

def get_ingress(self) -> Optional[Deployment]:
Copy link
Contributor

Choose a reason for hiding this comment

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

can you update this to be:

@property
def ingress(self):
    ...

to match the docstring and the deployments interface?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated it.

python/ray/serve/scripts.py Outdated Show resolved Hide resolved
@edoakes edoakes merged commit aaf47b2 into ray-project:master Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants