-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[core] Remove actor task path in normal task submitter #53996
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] Remove actor task path in normal task submitter #53996
Conversation
Signed-off-by: dayshah <[email protected]>
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.
Pull Request Overview
This PR removes the actor task path in the normal task submitter by eliminating actor-specific logic and updating related client cache usage.
- Removes the is_actor parameter from functions and lambda captures.
- Replaces the client_cache_ member with core_worker_client_pool_ across the NormalTaskSubmitter implementation.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/ray/core_worker/transport/normal_task_submitter.h | Updates constructor initialization and removes inline specifier for CheckNoSchedulingKeyEntries; replaces client_cache_ with core_worker_client_pool_. |
src/ray/core_worker/transport/normal_task_submitter.cc | Replaces client_cache_ usage with core_worker_client_pool_ and removes actor-specific parameters in task failure handling and task submission. |
Comments suppressed due to low confidence (1)
src/ray/core_worker/transport/normal_task_submitter.cc:605
- Verify that the removal of the actor-specific flag (is_actor) from the error handling call is appropriate and that the new error type mapping covers all intended scenarios.
task_id,
@@ -690,13 +686,12 @@ void NormalTaskSubmitter::HandleGetTaskFailureCause( | |||
error_info->set_error_message(buffer.str()); | |||
error_info->set_error_type(rpc::ErrorType::NODE_DIED); | |||
} | |||
RAY_UNUSED(task_finisher_.FailOrRetryPendingTask( | |||
task_id, | |||
is_actor ? rpc::ErrorType::ACTOR_DIED : task_error_type, |
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_actor
-- was this ever true in normal_task_submitter?
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.
maybe a long time ago there was only one submitter? i don't rlly know
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.
the question is if is_actor
is ever currently true here in the current state of the code
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.
oh, no
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 assuming the answer to Sagar's question is "no"
…3996) Actor tasks are never submitted into the normal task submitter and never should be. This removes that path and asserts it. Also changing a variable name from `client_cache_` to `core_worker_client_pool_`. Signed-off-by: dayshah <[email protected]>
Actor tasks are never submitted into the normal task submitter and never should be. This removes that path and asserts it. Also changing a variable name from `client_cache_` to `core_worker_client_pool_`. Signed-off-by: dayshah <[email protected]> Signed-off-by: elliot-barn <[email protected]>
Why are these changes needed?
Actor tasks are never submitted into the normal task submitter and never should be. This removes that path and asserts it.
Also changing a variable name from
client_cache_
tocore_worker_client_pool_
.Related issue number
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.