Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
  • Loading branch information
jjyao committed Sep 25, 2024
1 parent 04296c8 commit 5a0211a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray/core_worker/test/direct_actor_transport_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ TEST_P(ActorTaskSubmitterTest, TestActorRestartOutOfOrderGcs) {
task = CreateActorTaskHelper(actor_id, worker_id, 4);
EXPECT_CALL(*task_finisher_, FailOrRetryPendingTask(task.TaskId(), _, _, _, _, _))
.Times(1);
ASSERT_FALSE(CheckSubmitTask(task));
ASSERT_TRUE(CheckSubmitTask(task));
}

TEST_P(ActorTaskSubmitterTest, TestActorRestartFailInflightTasks) {
Expand Down
3 changes: 3 additions & 0 deletions src/ray/core_worker/transport/actor_task_submitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ Status ActorTaskSubmitter::SubmitTask(TaskSpecification task_spec) {
},
"ActorTaskSubmitter::SubmitTask");
} else {
// Post to the event loop to maintain the async nature of
// SubmitTask and avoid issues like
// https://github.com/ray-project/ray/issues/47606.
io_service_.post(
[this, task_spec, task_id]() {
// Do not hold the lock while calling into task_finisher_.
Expand Down

0 comments on commit 5a0211a

Please sign in to comment.