Skip to content

Commit

Permalink
scheduler: coscheduling plugin only record gang OnceResourceSatisfied… (
Browse files Browse the repository at this point in the history
#2029)

Signed-off-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
Co-authored-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
  • Loading branch information
xulinfei1996 and xulinfei.xlf committed May 8, 2024
1 parent 038308b commit 877d8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/plugins/coscheduling/core/gang.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (gang *Gang) addBoundPod(pod *v1.Pod) {
gang.BoundChildren[podId] = pod

klog.Infof("AddBoundPod, gangName: %v, podName: %v", gang.Name, podId)
if len(gang.BoundChildren) >= gang.MinRequiredNumber {
if !gang.OnceResourceSatisfied && len(gang.BoundChildren) >= gang.MinRequiredNumber {
gang.OnceResourceSatisfied = true
klog.Infof("Gang ResourceSatisfied due to addBoundPod, gangName: %v", gang.Name)
}
Expand Down

0 comments on commit 877d8fb

Please sign in to comment.