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] raise serve exception when requests are cancelled #48444

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

zcin
Copy link
Contributor

@zcin zcin commented Oct 30, 2024

Why are these changes needed?

Add new Serve exception called RequestCancelledError which extends TaskCancelledError for now to maintain backwards compatibility. Raise RequestCancelledError when fetching the result of a request that was cancelled.

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

Sorry, something went wrong.

Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
@zcin zcin requested review from GeneDer and edoakes October 30, 2024 16:11
Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

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

:shipit:

lint
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
@zcin zcin added the go add ONLY when ready to merge, run all tests label Oct 30, 2024
@zcin zcin enabled auto-merge (squash) October 30, 2024 18:35
document
Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
@zcin zcin requested review from akshay-anyscale and a team as code owners October 30, 2024 19:50
@github-actions github-actions bot disabled auto-merge October 30, 2024 19:51
@zcin zcin enabled auto-merge (squash) October 30, 2024 19:51
@zcin zcin merged commit 51eb235 into ray-project:master Oct 30, 2024
6 checks passed
Jay-ju pushed a commit to Jay-ju/ray that referenced this pull request Nov 5, 2024
…t#48444)

## Why are these changes needed?

Add new Serve exception called `RequestCancelledError` which extends
`TaskCancelledError` for now to maintain backwards compatibility. Raise
`RequestCancelledError` when fetching the result of a request that was
cancelled.


Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
…t#48444)

## Why are these changes needed?

Add new Serve exception called `RequestCancelledError` which extends
`TaskCancelledError` for now to maintain backwards compatibility. Raise
`RequestCancelledError` when fetching the result of a request that was
cancelled.


Signed-off-by: Cindy Zhang <cindyzyx9@gmail.com>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
…t#48444)

## Why are these changes needed?

Add new Serve exception called `RequestCancelledError` which extends
`TaskCancelledError` for now to maintain backwards compatibility. Raise
`RequestCancelledError` when fetching the result of a request that was
cancelled.

Signed-off-by: Cindy Zhang <cindyzyx9@gmail.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.

None yet

3 participants