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

[core] Add an internal system concurrency group for executing compiled dag tasks #41605

Merged
merged 4 commits into from
Dec 10, 2023

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Dec 5, 2023

Why are these changes needed?

As part of https://github.com/ray-project/enhancements/pull/48/files, we need the ability to launch system-managed tasks to execute compiled DAG work. These need to run in a separate concurrency group so they do not block other actor tasks.

This is an internal/experimental API only.

@@ -164,6 +164,21 @@ def f2(self):
assert "ok" == ray.get(async_actor.f2.remote())


def test_system_concurrency_group(ray_start_regular_shared):
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 test if users provide the default concurrency group, it raises an excepetion?

# It should fail.
@ray.remote(concurrency_groups={"_ray_system": 2})
class Actor:
   ...

Also it seems like concurrency group has a value (to limit concurrency). What's the default for the system concurrency group? Just 1?

Copy link
Contributor Author

@ericl ericl Dec 6, 2023

Choose a reason for hiding this comment

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

I think this is fine--- it's an internal feature and we don't provide any guarantees on how it works.

@rkooo567 rkooo567 added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Dec 6, 2023
@ericl ericl merged commit 603d1a1 into ray-project:master Dec 10, 2023
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants