-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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] Support labels for ray.remote #48715
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for a few small comments
python/ray/tests/test_advanced.py
Outdated
assert { | ||
lineage_reconstruction_tasks[0][0].name, | ||
lineage_reconstruction_tasks[1][0].name, | ||
} == {"task", "Actor.run"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a guarantee for the order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No guarantee for the order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then we should sort the results here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean in the test?
Why are these changes needed?
Allows users to set labels for actors and tasks (we already support node labels):
ray.remote(_labels={"key1": "value1"})
We start with private option but it should be a generally useful thing to be public in the future.For now it will be used by Data and
get_local_ongoing_lineage_reconstruction_tasks()
API.Related issue number
Closes #48476
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.