Skip to content

Conversation

dayshah
Copy link
Contributor

@dayshah dayshah commented Jun 22, 2025

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_ to core_worker_client_pool_.

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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

@dayshah dayshah added the go add ONLY when ready to merge, run all tests label Jun 22, 2025
@dayshah dayshah marked this pull request as ready for review June 22, 2025 07:29
@Copilot Copilot AI review requested due to automatic review settings June 22, 2025 07:29
Copy link
Contributor

@Copilot Copilot AI left a 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,
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, no

Copy link
Collaborator

@edoakes edoakes left a 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"

@edoakes edoakes merged commit f67bbfc into ray-project:master Jun 23, 2025
4 checks passed
@dayshah dayshah deleted the remove-normal-submit-actor branch June 23, 2025 15:43
minerharry pushed a commit to minerharry/ray that referenced this pull request Jun 27, 2025
…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]>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants