We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aa260c commit 23975efCopy full SHA for 23975ef
pkg/scheduler/plugins/capacity/capacity.go
@@ -598,7 +598,9 @@ func (cp *capacityPlugin) buildHierarchicalQueueAttrs(ssn *framework.Session) bo
598
599
// init root queue realCapability/capability/deserved as cp.totalResource
600
rootQueueAttr := cp.queueOpts[api.QueueID(cp.rootQueue)]
601
- rootQueueAttr.capability = cp.totalResource
+ if rootQueueAttr.capability == nil || rootQueueAttr.capability.IsEmpty() {
602
+ rootQueueAttr.capability = cp.totalResource
603
+ }
604
rootQueueAttr.realCapability = cp.totalResource
605
rootQueueAttr.deserved = cp.totalResource
606
// Check the hierarchical structure of queues
0 commit comments