-
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][deprecate run_function_on_all_workers 3/n] delete run_function_on_all_workers #30895
Conversation
@@ -156,9 +156,6 @@ def _process_key(self, key): | |||
# for profiling). | |||
# with profiling.profile("register_remote_function"): | |||
(self.worker.function_actor_manager.fetch_and_register_remote_function(key)) | |||
elif key.startswith(b"FunctionsToRun:"): |
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.
Let's also delete import_thread.py. It's only used in run_function_on_all_workers
@@ -156,9 +156,6 @@ def _process_key(self, key): | |||
# for profiling). | |||
# with profiling.profile("register_remote_function"): | |||
(self.worker.function_actor_manager.fetch_and_register_remote_function(key)) | |||
elif key.startswith(b"FunctionsToRun:"): | |||
with profiling.profile("fetch_and_run_function"): |
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.
Does it mean we are losing this data? This is kind of important for the timeline feature.
Very excited for this change, thank you so much for making it! This is code that is still around from a long time ago :) |
Will continue this after Ray 2.3. |
efac370
to
b003f8e
Compare
python/ray/_private/worker.py
Outdated
@@ -3054,7 +2959,7 @@ def remote( | |||
application-level errors should be retried up to max_retries times. | |||
This can be a boolean or a list of exceptions that should be retried. | |||
scheduling_strategy: Strategy about how to | |||
schedule a remote function or actor. Possible values are | |||
schedule a remote function or actou. Possible values are |
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.
revert?
🤩 |
b003f8e
to
2294789
Compare
b8b0554
to
e3a7561
Compare
e3a7561
to
3d2559c
Compare
rebase |
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.
Hmm is it really a good idea to deprecate this without the proper alternative? I feel like we need sth like a callback API that's called when the worker starts?
I thought that API called runtime env :) |
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)? |
cc @RehanSD for the awareness. |
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.
Actually @pcmoritz instead of completely removing the API, why don't we raise an exception? Or do you think it is better just removing it? If so, we should make sure this is documented in 2.6 (do we have any place to track deprecation somewhere?)
Also, I will make sure the replacement API will be available and documented by ray 2.6 |
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 :) |
Looks like one more lint is failing. I'll also try to get the remaining code owner approvals :) |
There is another failure here: https://buildkite.com/ray-project/oss-ci-build-pr/builds/24959#01889a90-c54a-46c9-af89-0b62df111d16 :) |
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.
Stamping
huh what a coincidence 369f68e#diff-41539696967c12463a48d082cec221167ea1b96ec702641db33479116c02297b |
Haha nice :) |
…6402) #30895 upgraded the pinned version of modin, removing support for python <= 3.7. All the release tests run with py37 by default, so the cluster env was failing to build due to no compatible modin version. This PR runs these release tests with py38 instead, which aligns with the us moving to testing with py38 for all of CI. Signed-off-by: Justin Yu <justinvyu@anyscale.com>
…ay-project#35179) I spent quite a bit of time debugging the test failure in ray-project#34393 (see also ray-project#35108) It turns out the PR slightly made the _do_importing race condition (first time call in the import thread) more likely to happen. There is already a plan / PR to get rid of it (ray-project#30895) but it is currently waiting for having a replacement mechanism that @rkooo567 is working on. I synced with @scv119 and for the time being, we are planning to skip the offending test on Windows and once we got rid of the import thread, we can re-activate it. Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
…_on_all_workers (ray-project#30895) This function is deprecated. The only use of run_funcion_on_all_workers in ray core has been replaced by ray-project#31383 Delete it to make our worker prestart change simpler. This PR depends on ray-project#31383 ray-project#31528 Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
…y-project#36402) ray-project#30895 upgraded the pinned version of modin, removing support for python <= 3.7. All the release tests run with py37 by default, so the cluster env was failing to build due to no compatible modin version. This PR runs these release tests with py38 instead, which aligns with the us moving to testing with py38 for all of CI. Signed-off-by: Justin Yu <justinvyu@anyscale.com> Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Why are these changes needed?
This function is deprecated. The only use of run_funcion_on_all_workers in ray core has been replaced by #31383
Delete it to make our worker prestart change simpler.
This PR depends on #31383 #31528
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.