diff --git a/python/ray/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx b/python/ray/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx index 4be505752..7c8d88ecd 100644 --- a/python/ray/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx +++ b/python/ray/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx @@ -176,9 +176,19 @@ class NodeInfo extends React.Component< return ( - clusterWorkerPids.has(worker.pid.toString()), - )} + clusterWorkers={client.workers + .filter((worker) => + clusterWorkerPids.has(worker.pid.toString()), + ) + .sort((w1, w2) => { + if (w2.cmdline[0] === "ray::IDLE") { + return -1; + } + if (w1.cmdline[0] === "ray::IDLE") { + return 1; + } + return w1.pid < w2.pid ? -1 : 1; + })} node={client} raylet={ client.ip in rayletInfo.nodes