We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b5bf18 commit 15ebb45Copy full SHA for 15ebb45
pkg/scheduler/plugins/gang/gang.go
@@ -163,6 +163,10 @@ func (gp *gangPlugin) OnSessionClose(ssn *framework.Session) {
163
var unreadyTaskCount int32
164
var unScheduleJobCount int
165
for _, job := range ssn.Jobs {
166
+ // skip the jobs that have no tasks.
167
+ if len(job.Tasks) == 0 {
168
+ continue
169
+ }
170
if !job.IsReady() {
171
schedulableTaskNum := func() (num int32) {
172
for _, task := range job.TaskStatusIndex[api.Pending] {
0 commit comments