Skip to content

Commit

Permalink
use goroutine pool deal sc.taskUnschedulable
Browse files Browse the repository at this point in the history
Signed-off-by: 张建宇 <[email protected]>
  • Loading branch information
张建宇 committed Jan 3, 2025
1 parent c0f8d90 commit 7f14a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ func (sc *SchedulerCache) RecordJobStatusEvent(job *schedulingapi.JobInfo, updat
for _, status := range []schedulingapi.TaskStatus{schedulingapi.Allocated, schedulingapi.Pending, schedulingapi.Pipelined} {
statusTasks := job.TaskStatusIndex[status]
workerNum := 16
taskInfos := make([]*schedulingapi.TaskInfo, 0)
taskInfos := make([]*schedulingapi.TaskInfo, 0, len(statusTasks))
for _, task := range statusTasks {
taskInfos = append(taskInfos, task)
}
Expand Down

0 comments on commit 7f14a89

Please sign in to comment.