Skip to content

Commit

Permalink
scheduler: improve Coscheduling PreFilter status (koordinator-sh#1861)
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph <joseph.t.lee@outlook.com>
  • Loading branch information
eahydra committed Feb 26, 2024
1 parent d8f3773 commit cd2c859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/plugins/coscheduling/coscheduling.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (cs *Coscheduling) PreFilter(ctx context.Context, state *framework.CycleSta
// any preemption attempts.
if err := cs.pgMgr.PreFilter(ctx, pod); err != nil {
klog.ErrorS(err, "PreFilter failed", "pod", klog.KObj(pod))
return nil, framework.AsStatus(err)
return nil, framework.NewStatus(framework.UnschedulableAndUnresolvable, err.Error())
}
return nil, framework.NewStatus(framework.Success, "")
}
Expand Down

0 comments on commit cd2c859

Please sign in to comment.