Skip to content

Commit

Permalink
Revert "remove unused function"
Browse files Browse the repository at this point in the history
This reverts commit f34abc0.
  • Loading branch information
ykcai-daniel committed Sep 6, 2024
1 parent f34abc0 commit 17bbc42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/scheduler/api/job_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,15 @@ func (ji *JobInfo) DeleteTaskInfo(ti *TaskInfo) error {
return nil
}

func (ji *JobInfo) HaveSchGatedTask() bool {
for _, task := range ji.Tasks {
if task.SchedulingGated() {
return true
}
}
return false
}

// Clone is used to clone a jobInfo object
func (ji *JobInfo) Clone() *JobInfo {
info := &JobInfo{
Expand Down

0 comments on commit 17bbc42

Please sign in to comment.