Check for raylet PID as ppid in dashboard agent fate-sharing (#12867)

This commit is contained in:
Edward Oakes
2020-12-15 12:13:11 -06:00
committed by GitHub
parent e077bc4206
commit 261b2f9053
3 changed files with 24 additions and 12 deletions
+1
View File
@@ -60,6 +60,7 @@ void AgentManager::StartAgent() {
// Set node id to agent.
ProcessEnvironment env;
env.insert({"RAY_NODE_ID", options_.node_id.Hex()});
env.insert({"RAY_RAYLET_PID", std::to_string(getpid())});
Process child(argv.data(), nullptr, ec, false, env);
if (!child.IsValid() || ec) {
// The worker failed to start. This is a fatal error.