diff --git a/src/ray/raylet/node_manager.cc b/src/ray/raylet/node_manager.cc index 3cce1eb45..da9d72c8e 100644 --- a/src/ray/raylet/node_manager.cc +++ b/src/ray/raylet/node_manager.cc @@ -1814,13 +1814,8 @@ void NodeManager::HandlePrepareBundleResources( RAY_LOG(DEBUG) << "Request to prepare bundle resources is received, " << bundle_spec.DebugString(); auto prepared = PrepareBundle(cluster_resource_map_, bundle_spec); - if (!prepared) { - reply->set_success(false); - send_reply_callback(Status::OK(), nullptr, nullptr); - } else { - reply->set_success(true); - send_reply_callback(Status::OK(), nullptr, nullptr); - } + reply->set_success(prepared); + send_reply_callback(Status::OK(), nullptr, nullptr); // Call task dispatch to assign work to the new group. TryLocalInfeasibleTaskScheduling(); DispatchTasks(local_queues_.GetReadyTasksByClass());