Skip to content

Commit

Permalink
Fix a bug that 'remote_avaiable' used after it was moved ray-project#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kisuke95 authored Jun 18, 2020
1 parent 5edddf6 commit 0de2efd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ray/raylet/node_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,9 @@ void NodeManager::HeartbeatAdded(const ClientID &client_id,
remote_resources.SetLoadResources(std::move(remote_load));

if (new_scheduler_enabled_ && client_id != self_node_id_) {
new_resource_scheduler_->AddOrUpdateNode(client_id.Binary(),
remote_total.GetResourceMap(),
remote_available.GetResourceMap());
new_resource_scheduler_->AddOrUpdateNode(
client_id.Binary(), remote_total.GetResourceMap(),
remote_resources.GetAvailableResources().GetResourceMap());
NewSchedulerSchedulePendingTasks();
return;
}
Expand Down

0 comments on commit 0de2efd

Please sign in to comment.