Skip to content

Commit

Permalink
Revert ":bug: Fix detect container 1+ image pull errors." (#691)
Browse files Browse the repository at this point in the history
Reverts #683
  • Loading branch information
shawn-hurley authored Jul 3, 2024
1 parent 2ba93e2 commit 3c67889
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,6 @@ func (r *Task) podPending(pod *core.Pod) {
status = append(
status,
pod.Status.ContainerStatuses...)
started := 0
for _, status := range status {
state := status.State
if state.Waiting != nil {
Expand All @@ -1259,13 +1258,11 @@ func (r *Task) podPending(pod *core.Pod) {
continue
}
if *status.Started {
started++
r.Event(PodRunning)
r.State = Running
return
}
}
if started > 0 {
r.Event(PodRunning)
r.State = Running
}
}

// Cancel the task.
Expand Down

0 comments on commit 3c67889

Please sign in to comment.