ray icon indicating copy to clipboard operation
ray copied to clipboard

[Core] delete run_function_on_all_workers

Open scv119 opened this issue 2 years ago • 1 comments

Why are these changes needed?

This function is deprecated. Delete it to make our worker prestart change simpler. This PR depends on #31383

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

scv119 avatar Dec 05 '22 19:12 scv119

Very excited for this change, thank you so much for making it! This is code that is still around from a long time ago :)

pcmoritz avatar Dec 06 '22 07:12 pcmoritz

Will continue this after Ray 2.3.

scv119 avatar Jan 09 '23 05:01 scv119

🤩

edoakes avatar Feb 02 '23 17:02 edoakes

rebase

scv119 avatar Mar 08 '23 06:03 scv119

I feel like we need sth like a callback API that's called when the worker starts?

I thought that API called runtime env :)

scv119 avatar Mar 09 '23 19:03 scv119

Hmm I actually have 2 suggestions in this case?

https://docs.ray.io/en/master/ray-core/handling-dependencies.html -> I saw this doc, and it is not clear to me where to look in order to perform the same action. Can you link to the sub-category that has the exact API to replace this?

Instead of completely removing the function, why don't we keep the function but just raise an exception (for the backward compatibility)?

rkooo567 avatar Mar 09 '23 23:03 rkooo567

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

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

stale[bot] avatar Apr 25 '23 20:04 stale[bot]

Unstale. We can replace this to https://docs.google.com/document/d/1ngiuAZAMnl9c4LozoTpWh37KPviDRIpmEjEI6BsNL7w/edit# by ray 2.5

rkooo567 avatar Apr 26 '23 01:04 rkooo567

There is a modin related test failure.

Looks like we got lucky here and modin's dependency on run_functions_on_all_workers was removed here: https://github.com/modin-project/modin/pull/4603 so maybe bumping the modin version will fix this? I hope that's true, otherwise there will be pain.

pcmoritz avatar Jun 08 '23 00:06 pcmoritz

cc @RehanSD for the awareness.

rkooo567 avatar Jun 08 '23 06:06 rkooo567

Also, I will make sure the replacement API will be available and documented by ray 2.6

rkooo567 avatar Jun 08 '23 06:06 rkooo567

Given this was a private API and has been deprecated for a while, I think it is fine to just remove it. But it is a good idea to mention in the release notes the worker process init hook you are working on :)

pcmoritz avatar Jun 08 '23 06:06 pcmoritz

Looks like one more lint is failing. I'll also try to get the remaining code owner approvals :)

pcmoritz avatar Jun 08 '23 06:06 pcmoritz

There is another failure here: https://buildkite.com/ray-project/oss-ci-build-pr/builds/24959#01889a90-c54a-46c9-af89-0b62df111d16 :)

pcmoritz avatar Jun 08 '23 15:06 pcmoritz

huh what a coincidence https://github.com/ray-project/ray/commit/369f68eade807133710648cb021903acdfe73f06#diff-41539696967c12463a48d082cec221167ea1b96ec702641db33479116c02297b

scv119 avatar Jun 08 '23 20:06 scv119

Haha nice :)

pcmoritz avatar Jun 08 '23 21:06 pcmoritz