19973: Add metrics for automatic container concurrency limit.
[arvados.git] / lib / dispatchcloud / scheduler / run_queue.go
index cfd95e94549745140c619f26b9f914aa656c969d..057ff8d6e29505fa9319071d1f135a939ef0a83e 100644 (file)
@@ -62,6 +62,8 @@ func (sch *Scheduler) runQueue() {
                        sch.maxConcurrency = max
                }
        }
+       sch.mLast503Time.Set(float64(sch.last503time.Unix()))
+       sch.mMaxContainerConcurrency.Set(float64(sch.maxConcurrency))
 
        sch.logger.WithFields(logrus.Fields{
                "Containers":     len(sorted),