Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit f0c2659

Browse files
committed
Adding fix forprevious version
1 parent 8a6c199 commit f0c2659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller.v1beta2/pytorch/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func (pc *PyTorchController) reconcilePyTorchJobs(job *v1beta2.PyTorchJob) error
362362

363363
activePods := k8sutil.FilterActivePods(pods)
364364
active := int32(len(activePods))
365-
failed := int32(k8sutil.FilterPods(pods, v1.PodFailed))
365+
failed := k8sutil.FilterPodCount(pods, v1.PodFailed)
366366
totalReplicas := getTotalReplicas(job)
367367
prevReplicasFailedNum := getTotalFailedReplicas(job)
368368

0 commit comments

Comments
 (0)