From 299c10c9901f616153477e7a4ab8cdd9318cb35a Mon Sep 17 00:00:00 2001 From: Russell Power Date: Tue, 5 May 2026 14:33:18 -0700 Subject: [PATCH] [iris] Prune dead resource_usage paths; query iris.task in JobDetail Drop the worker-pushed and controller-stored ResourceUsage plumbing that the finelog stats migration left behind: WorkerTaskStatus.resource_usage, TaskUpdate.resource_usage, JobStatus.resource_usage, and the GetJobStatusResponse min/max aggregates are reserved. Rewire the k8s ResourceCollector to write IrisTaskStat rows directly to iris.task so CoreWeave pods stay observable, and point the JobDetail dashboard at the same namespace so per-task MEM/CPU columns populate again. --- .../src/components/controller/JobDetail.vue | 138 +++++--- lib/iris/dashboard/src/types/rpc.ts | 22 +- .../src/iris/cluster/controller/controller.py | 11 +- .../iris/cluster/controller/transitions.py | 20 +- .../src/iris/cluster/providers/k8s/tasks.py | 112 +++---- lib/iris/src/iris/cluster/worker/worker.py | 11 - lib/iris/src/iris/rpc/controller.proto | 5 +- lib/iris/src/iris/rpc/controller_pb2.py | 294 +++++++++--------- lib/iris/src/iris/rpc/controller_pb2.pyi | 8 +- lib/iris/src/iris/rpc/job.proto | 11 +- lib/iris/src/iris/rpc/job_pb2.py | 156 +++++----- lib/iris/src/iris/rpc/job_pb2.pyi | 18 +- .../tests/cluster/providers/k8s/conftest.py | 18 +- .../cluster/providers/k8s/test_provider.py | 97 +++--- 14 files changed, 492 insertions(+), 429 deletions(-) diff --git a/lib/iris/dashboard/src/components/controller/JobDetail.vue b/lib/iris/dashboard/src/components/controller/JobDetail.vue index 781d661816..59e9f17c82 100644 --- a/lib/iris/dashboard/src/components/controller/JobDetail.vue +++ b/lib/iris/dashboard/src/components/controller/JobDetail.vue @@ -1,15 +1,15 @@