quick break when met

Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
kerthcet 2024-01-23 19:38:57 +08:00
parent 3aa8c59fec
commit 8371e4cf93

View File

@ -835,6 +835,7 @@ func (pl *dynamicResources) PreScore(ctx context.Context, cs *framework.CycleSta
for _, claim := range state.claims {
if claim.Status.Allocation == nil {
pending = true
break
}
}
if !pending {