Skip to content

Commit 2ba93e2

Browse files
authored
🐛 Fix detect container 1+ image pull errors. (#683)
Signed-off-by: Jeff Ortel <[email protected]>
1 parent 4648a9c commit 2ba93e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: task/manager.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ func (r *Task) podPending(pod *core.Pod) {
12361236
status = append(
12371237
status,
12381238
pod.Status.ContainerStatuses...)
1239+
started := 0
12391240
for _, status := range status {
12401241
state := status.State
12411242
if state.Waiting != nil {
@@ -1258,11 +1259,13 @@ func (r *Task) podPending(pod *core.Pod) {
12581259
continue
12591260
}
12601261
if *status.Started {
1261-
r.Event(PodRunning)
1262-
r.State = Running
1263-
return
1262+
started++
12641263
}
12651264
}
1265+
if started > 0 {
1266+
r.Event(PodRunning)
1267+
r.State = Running
1268+
}
12661269
}
12671270

12681271
// Cancel the task.

0 commit comments

Comments
 (0)