Add label_selector option to remote functions#51707
Add label_selector option to remote functions#51707edoakes merged 44 commits intoray-project:masterfrom
label_selector option to remote functions#51707Conversation
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
MengjinYan
left a comment
There was a problem hiding this comment.
Thanks for the effort!
I have one general question: It seems that this PR only contains the logic to add the options. For the validation logic, are you planning to add it in a future PR?
Co-authored-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Co-authored-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Co-authored-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
It already validates that |
I think we definitely shouldn't silently ignore the selectors if they are not valid. We need to give users explicitly warnings to users. Personally, I would prefer we check the syntax here and raise an error early so that the users can be aware of the invalid syntax and fix accordingly. |
Co-authored-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Co-authored-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
That makes sense to me, I updated the tests and added validation logic for |
Co-authored-by: Mengjin Yan <mengjinyan3@gmail.com> Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
|
@ryanaoleary there are some merge conflicts due to the revert, pls fix one the other PR is re-merged |
Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
@edoakes I've fixed the merge conflicts now that the other PR is merged, I also updated the validation logic to retain the previous check based on the discussion from the other PR. |
There's another merge conflict 😓 |
Signed-off-by: ryanaoleary <113500783+ryanaoleary@users.noreply.github.com>
Ah lol should be fixed now |
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
Signed-off-by: Ryan O'Leary <ryanaoleary@google.com>
| finally: | ||
| subprocess.check_call(["ray", "stop", "--force"]) | ||
| os.remove(test_file_path) |
There was a problem hiding this comment.
will merge the PR as-is, but please follow up to move all such cleanup logic in this file into fixtures as best practice
Why are these changes needed?
Adds the
label_selectoroption to Ray tasks/actors through_common_options, to specify labels used for scheduling on Ray nodes.Related issue number
#51564
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.