[Dashboard] Fix missing actor pid (#13229)

This commit is contained in:
fyrestone
2021-01-13 16:45:12 +08:00
committed by GitHub
parent 0b22341bc9
commit 4853aa96cb
5 changed files with 13 additions and 34 deletions
@@ -1,6 +1,7 @@
#include "ray/raylet/scheduling/cluster_task_manager.h"
#include <google/protobuf/map.h>
#include <boost/range/join.hpp>
#include "ray/util/logging.h"
@@ -647,6 +648,7 @@ void ClusterTaskManager::Dispatch(
const auto &task_spec = task.GetTaskSpecification();
RAY_LOG(DEBUG) << "Dispatching task " << task_spec.TaskId();
// Pass the contact info of the worker to use.
reply->set_worker_pid(worker->GetProcess().GetId());
reply->mutable_worker_address()->set_ip_address(worker->IpAddress());
reply->mutable_worker_address()->set_port(worker->Port());
reply->mutable_worker_address()->set_worker_id(worker->WorkerId().Binary());