We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4648a9c commit 2ba93e2Copy full SHA for 2ba93e2
task/manager.go
@@ -1236,6 +1236,7 @@ func (r *Task) podPending(pod *core.Pod) {
1236
status = append(
1237
status,
1238
pod.Status.ContainerStatuses...)
1239
+ started := 0
1240
for _, status := range status {
1241
state := status.State
1242
if state.Waiting != nil {
@@ -1258,11 +1259,13 @@ func (r *Task) podPending(pod *core.Pod) {
1258
1259
continue
1260
}
1261
if *status.Started {
- r.Event(PodRunning)
1262
- r.State = Running
1263
- return
+ started++
1264
1265
+ if started > 0 {
1266
+ r.Event(PodRunning)
1267
+ r.State = Running
1268
+ }
1269
1270
1271
// Cancel the task.
0 commit comments