diff --git a/pkg/repository/container_redis.go b/pkg/repository/container_redis.go index 4c8c6835a..6b8d8eac9 100644 --- a/pkg/repository/container_redis.go +++ b/pkg/repository/container_redis.go @@ -381,6 +381,10 @@ func (c *ContainerRedisRepository) SetContainerStateWithConcurrencyLimit(quota * totalCpu := 0 totalMemory := int64(0) for _, container := range containers { + if container.Status == types.ContainerStatusStopping { + continue + } + totalGpuCount += int(container.GpuCount) totalCpu += int(container.Cpu) totalMemory += container.Memory