feat: allow restore jobs that has not any taken save point
This commit is contained in:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user