Skip to content

[Data] Disable blocking pipeline by default until Actor Pool fully scales up to min actors #52754

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

alexeykudinkin
Copy link
Contributor

Why are these changes needed?

These changes were prompted by recently observed issue when pipeline was blocked for prolonged period of time due to Actor Pool taking long time to provision non-trivial amount of min-actors.

In reality, we don't really need to block the execution until all actors are fully provisioned and could have this behavior configurable.

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

@alexeykudinkin alexeykudinkin requested a review from a team as a code owner May 2, 2025 20:14
@alexeykudinkin alexeykudinkin requested a review from raulchen May 2, 2025 20:14
@alexeykudinkin alexeykudinkin added the go add ONLY when ready to merge, run all tests label May 2, 2025
# Actor Pool will block until min number of actors is provisioned.
#
# Otherwise, all actors will be provisioned asynchronously.
if self.data_context.wait_for_min_actors_s > 0:
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 the doc-string for wait_for_min_actors_s?

Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
Signed-off-by: Alexey Kudinkin <[email protected]>
@alexeykudinkin alexeykudinkin force-pushed the ak/act-pl-min-blk-fix branch from 7aca7cf to 5befa06 Compare May 3, 2025 05:07
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.

2 participants