mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 17:50:55 +08:00
[Dashboard] Sort IDLE workers to bottom in dashboard (#8708)
* Sort IDLE workers to bottom in dashboard * Fixed linting error Co-authored-by: Kai Fricke <kai@anyscale.com>
This commit is contained in:
@@ -176,9 +176,19 @@ class NodeInfo extends React.Component<
|
||||
return (
|
||||
<NodeRowGroup
|
||||
key={client.ip}
|
||||
clusterWorkers={client.workers.filter((worker) =>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user