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] Create application.py #23759

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Conversation

shrekris-anyscale
Copy link
Contributor

Why are these changes needed?

The Application class is stored in api.py. The object is relatively standalone and is used as a dependency in other classes, so this change moves Application (and ImmutableDeploymentDict) to a new file, application.py.

Related issue number

N/A

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
    • This change relies on existing tests only.

@edoakes edoakes merged commit a6bcb6c into ray-project:master Apr 7, 2022
edoakes pushed a commit to edoakes/ray that referenced this pull request Apr 7, 2022
The `Application` class is stored in `api.py`. The object is relatively standalone and is used as a dependency in other classes, so this change moves `Application` (and `ImmutableDeploymentDict`) to a new file, `application.py`.
clarkzinzow added a commit to clarkzinzow/ray that referenced this pull request Apr 7, 2022
edoakes pushed a commit that referenced this pull request May 10, 2022
…` functions (#24616)

There are delayed imports in the [`run()`](https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py#L596-L597) and [`build()`](https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py#L672) functions in [`api.py`](https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py). These imports are no longer circular due to recent refactoring (see #23578 and #23759). This change promotes them to top-level imports.
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.

None yet

3 participants