mirror of
https://github.com/wassname/ray.git
synced 2026-08-15 12:45:23 +08:00
This reverts commit 3ce9286977.
This commit is contained in:
@@ -58,10 +58,8 @@ void AgentManager::StartAgent() {
|
||||
}
|
||||
argv.push_back(NULL);
|
||||
// Set node id to agent.
|
||||
static std::string pid_string = std::to_string(getpid());
|
||||
ProcessEnvironment env;
|
||||
env.insert({"RAY_NODE_ID", options_.node_id.Hex()});
|
||||
env.insert({"RAY_NODE_PID", pid_string});
|
||||
Process child(argv.data(), nullptr, ec, false, env);
|
||||
if (!child.IsValid() || ec) {
|
||||
// The worker failed to start. This is a fatal error.
|
||||
|
||||
Reference in New Issue
Block a user