feat(system): instrument worker pipeline stages
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
} from "@nodedc/ui-react";
|
||||
|
||||
import { TelemetrySeries } from "../../components/system/TelemetrySeries";
|
||||
import { WorkerPipelineStages } from "../../components/system/WorkerPipelineStages";
|
||||
import { WorkerRuntimeCard } from "../../components/system/WorkerRuntimeCard";
|
||||
import {
|
||||
formatBytes,
|
||||
@@ -189,20 +190,7 @@ export function ComputeModulesWorkspace() {
|
||||
<div><span>Inference success</span><strong>{node?.triton.requests_succeeded ?? "—"}</strong></div>
|
||||
<div><span>Inference failed</span><strong>{node?.triton.requests_failed ?? "—"}</strong></div>
|
||||
</div>
|
||||
<ol className="worker-stage-list">
|
||||
{(telemetry?.pipeline.stages ?? []).map((stage, index) => (
|
||||
<li key={stage.id} data-state={stage.state}>
|
||||
<span>{String(index + 1).padStart(2, "0")}</span>
|
||||
<strong>{stage.label}</strong>
|
||||
<small>{
|
||||
stage.state === "active" ? "выполняется"
|
||||
: stage.state === "waiting" ? "в очереди"
|
||||
: stage.state === "ready" ? "готов"
|
||||
: "нет данных"
|
||||
}</small>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
<WorkerPipelineStages stages={telemetry?.pipeline.stages ?? []} />
|
||||
</GlassSurface>
|
||||
|
||||
<section className="system-runtime-section system-runtime-section--external">
|
||||
|
||||
Reference in New Issue
Block a user