diff --git a/internal/managed_job/cycle.go b/internal/managed_job/cycle.go index 0aa3448..077de2d 100644 --- a/internal/managed_job/cycle.go +++ b/internal/managed_job/cycle.go @@ -41,6 +41,12 @@ func (job *ManagedJob) Cycle() { if job.def.Status.JobStatus == v1alpha1.JobStatusCreating { return } + + if job.def.Status.JobStatus == v1alpha1.JobStatusFailed { + job.def.Status.LifeCycleStatus = v1alpha1.LifeCycleStatusFailed + job.crd.SetJobStatus(job.def.UID, job.def.Status) + return + } // if job.def.Status.JobStatus == v1alpha1.JobStatusFailed && job.def.Status.LastSavepointPath != nil { // //job.restore() // return