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] Expose ApplicationStatus class to API docs (#34966) #48220

Merged
merged 10 commits into from
Oct 24, 2024

Conversation

akyang-anyscale
Copy link
Contributor

@akyang-anyscale akyang-anyscale commented Oct 23, 2024

Why are these changes needed?

This PR moves the ApplicationStatus class out of the _private directory, allowing it to be included in the API docs.

Related issue number

Closes #34966

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 :(

…erview classes to API docs

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Copy link
Contributor

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

A journey of a thousand miles...

@edoakes
Copy link
Contributor

edoakes commented Oct 23, 2024

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
@akyang-anyscale
Copy link
Contributor Author

akyang-anyscale commented Oct 23, 2024

I actually rather not have ApplicationStatusInfo and StatusOverview made public since they are only used in _private/. 2176acd moves ApplicationStatusInfo and StatusOverview back into _private/ . They now live in application_state.py.

@akyang-anyscale akyang-anyscale added the go add ONLY when ready to merge, run all tests label Oct 23, 2024
Copy link
Contributor

@zcin zcin left a comment

Choose a reason for hiding this comment

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

Nice!

@PublicAPI(stability="alpha")
@dataclass
class ApplicationStatusOverview:
"""Describes the status of an application and all its deployments.
"""Describes the satus of an application and all its deployments.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""Describes the satus of an application and all its deployments.
"""Describes the status of an application and all its deployments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
@zcin zcin enabled auto-merge (squash) October 24, 2024 17:03
@zcin zcin merged commit aec60b9 into ray-project:master Oct 24, 2024
6 checks passed
@akyang-anyscale akyang-anyscale deleted the alexyang/serve-app-status branch October 24, 2024 17:36
Jay-ju pushed a commit to Jay-ju/ray that referenced this pull request Nov 5, 2024
ray-project#48220)

## Why are these changes needed?

This PR moves the ApplicationStatus class out of the _private directory,
allowing it to be included in the API docs.

## Related issue number

Closes ray-project#34966

---------

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
ray-project#48220)

## Why are these changes needed?

This PR moves the ApplicationStatus class out of the _private directory,
allowing it to be included in the API docs.

## Related issue number

Closes ray-project#34966

---------

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
ray-project#48220)

## Why are these changes needed?

This PR moves the ApplicationStatus class out of the _private directory,
allowing it to be included in the API docs.

## Related issue number

Closes ray-project#34966

---------

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
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.

[Serve] Application status info is missing in the api reference
3 participants