feat: allow restore jobs that has not any taken save point

This commit is contained in:
2024-12-13 02:50:43 +03:30
parent c066a9fd90
commit b2d2295d07
2 changed files with 10 additions and 3 deletions

View File

@@ -102,6 +102,10 @@ func (job *ManagedJob) Cycle() {
job.restore()
return
}
if job.def.Status.JobStatus == v1alpha1.JobStatusFailed && job.def.Status.LastSavepointPath == nil {
job.restore()
return
}
pkg.Logger.Warn("[managed-job] [cycle]", zap.String("unhanded job status", string(job.def.Status.JobStatus)))
}