From dedbfa099c8160bee80fafdb66d086b2c296137e Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 12 Jul 2023 16:12:10 +0200 Subject: [PATCH] Fill resource limits with configured limits --- http/handler/api/cluster_process.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/http/handler/api/cluster_process.go b/http/handler/api/cluster_process.go index d45e3a30..6ab4e14b 100644 --- a/http/handler/api/cluster_process.go +++ b/http/handler/api/cluster_process.go @@ -251,6 +251,16 @@ func (h *ClusterHandler) convertStoreProcessToAPIProcess(p store.Process, filter process.State = &api.ProcessState{ Order: p.Order, LastLog: p.Error, + Resources: api.ProcessUsage{ + CPU: api.ProcessUsageCPU{ + NCPU: api.ToNumber(1), + Limit: api.ToNumber(p.Config.LimitCPU), + }, + Memory: api.ProcessUsageMemory{ + Limit: p.Config.LimitMemory, + }, + }, + Command: []string{}, } if len(p.Error) != 0 {