Skip to content

Commit 83e8142

Browse files
[Dashboard] Link Workers to Actor Detail pages and handle Nil IDs
Signed-off-by: Ayush KAshyap <kashyap11ayush02@gmail.com>
1 parent 395632c commit 83e8142

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

python/ray/dashboard/client/src/pages/node/NodeRow.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,20 @@ export const WorkerRow = ({ node, worker }: WorkerRowProps) => {
248248
<TableCell>
249249
{/* Empty because workers do not have an expand / unexpand button. */}
250250
</TableCell>
251-
<TableCell align="center">{cmdline[0]}</TableCell>
251+
<TableCell align="center">
252+
<Link
253+
component={RouterLink}
254+
to={
255+
coreWorker?.actorId &&
256+
coreWorker.actorId !== "ffffffffffffffffffffffffffffffffffffffff" &&
257+
coreWorker.actorId !== "ffffffffffffffffffffffffffffffff"
258+
? `/actors/${coreWorker.actorId}`
259+
: `/cluster/nodes/${nodeId}`
260+
}
261+
>
262+
{cmdline?.[0] || "Unknown Worker"}
263+
</Link>
264+
</TableCell>
252265
<TableCell>
253266
<StatusChip type="worker" status="ALIVE" />
254267
</TableCell>

0 commit comments

Comments
 (0)