mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00
[Core] Simplify logic in node manager class. (#11063)
Co-authored-by: 逗角 <yeqing.fyq@antfin.com>
This commit is contained in:
parent
142234cbcb
commit
0765d989ae
1 changed files with 2 additions and 7 deletions
|
@ -1814,13 +1814,8 @@ void NodeManager::HandlePrepareBundleResources(
|
||||||
RAY_LOG(DEBUG) << "Request to prepare bundle resources is received, "
|
RAY_LOG(DEBUG) << "Request to prepare bundle resources is received, "
|
||||||
<< bundle_spec.DebugString();
|
<< bundle_spec.DebugString();
|
||||||
auto prepared = PrepareBundle(cluster_resource_map_, bundle_spec);
|
auto prepared = PrepareBundle(cluster_resource_map_, bundle_spec);
|
||||||
if (!prepared) {
|
reply->set_success(prepared);
|
||||||
reply->set_success(false);
|
send_reply_callback(Status::OK(), nullptr, nullptr);
|
||||||
send_reply_callback(Status::OK(), nullptr, nullptr);
|
|
||||||
} else {
|
|
||||||
reply->set_success(true);
|
|
||||||
send_reply_callback(Status::OK(), nullptr, nullptr);
|
|
||||||
}
|
|
||||||
// Call task dispatch to assign work to the new group.
|
// Call task dispatch to assign work to the new group.
|
||||||
TryLocalInfeasibleTaskScheduling();
|
TryLocalInfeasibleTaskScheduling();
|
||||||
DispatchTasks(local_queues_.GetReadyTasksByClass());
|
DispatchTasks(local_queues_.GetReadyTasksByClass());
|
||||||
|
|
Loading…
Add table
Reference in a new issue