Skip to content

[Core][Refactor] Create separate RPCs for cancelling prepared PG bundle and removing PG - #52751

Closed
jjyao wants to merge 7 commits into
ray-project:masterfrom
jjyao:jjyao/pgfix
Closed

jjyao wants to merge 7 commits into
ray-project:masterfrom
jjyao:jjyao/pgfix

Conversation

@jjyao

@jjyao jjyao commented May 2, 2025 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Currently CancelResourceReserve is used for both cancelling prepared PG bundle if prepare phase fails and removing the entire PG. However the code needed for these two cases are actually different and it's cleaner to separate them out:

  1. For the cancelling prepared PG bundle case, we know the bundle is not committed yet so we can just directly return the bundle resources.
  2. For the PG removal case, we need to cancel all the worker lease requests asking for that specific PG and also force kill any running tasks using that PG before we return the bundle resources.

Also this PR uses retryable_grpc_client to retry these two RPCs for network error.

Related issue number

Checks

Signed-off-by: Jiajun Yao <[email protected]>
@jjyao jjyao added the go add ONLY when ready to merge, run all tests label May 2, 2025
@jjyao jjyao changed the title [Core] Fix check failure [Core][Refactor] Create separate RPCs for cancelling prepared PG bundle and removing PG May 21, 2025
@github-actions

github-actions Bot commented Jun 9, 2025

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jun 9, 2025
@jjyao jjyao removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jun 9, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Jun 24, 2025
@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no more activity in the 14 days
since being marked stale.

Please feel free to reopen or open a new pull request if you'd still like this to be addressed.

Again, you can always ask for help on our discussion forum or Ray's public slack channel.

Thanks again for your contribution!

@github-actions github-actions Bot closed this Jul 8, 2025
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 stale The issue is stale. It will be closed within 7 days unless there are further conversation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants