Skip to content

Commit

Permalink
Merge pull request #3001 from wangyang0616/fix_pipeline_pod_reason
Browse files Browse the repository at this point in the history
Fix: the pod pipeline status is incompatible with autoscaler capacity expansion
  • Loading branch information
volcano-sh-bot authored Jul 27, 2023
2 parents a7f04a9 + f9646bc commit 13f60b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/scheduler/api/job_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,13 +653,13 @@ func (ji *JobInfo) TaskSchedulingReason(tid TaskID) (reason string, msg string)

msg = ji.JobFitErrors
switch status := ctx.Status; status {
case Allocated, Pipelined:
case Allocated:
// Pod is schedulable
msg = fmt.Sprintf("Pod %s/%s can possibly be assigned to %s", taskInfo.Namespace, taskInfo.Name, ctx.NodeName)
if status == Pipelined {
msg += " once resource is released"
}
return PodReasonSchedulable, msg
case Pipelined:
msg = fmt.Sprintf("Pod %s/%s can possibly be assigned to %s, once resource is released", taskInfo.Namespace, taskInfo.Name, ctx.NodeName)
return PodReasonUnschedulable, msg
case Pending:
if fe := ji.NodesFitErrors[tid]; fe != nil {
// Pod is not schedulable
Expand Down

0 comments on commit 13f60b8

Please sign in to comment.