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

This commit is contained in:
Edward Oakes
2020-12-20 16:44:20 -08:00
committed by Max Fitton
parent ffd7d121ad
commit 40f77101d5
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.