- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsJobSucceeded (0.08 sec)
-
pkg/controller/job/util/utils.go
// It does not discriminate between successful and failed terminations. func IsJobFinished(j *batch.Job) bool { isFinished, _ := FinishedCondition(j) return isFinished } // IsJobSucceeded returns whether a job has completed successfully. func IsJobSucceeded(j *batch.Job) bool { for _, c := range j.Status.Conditions { if c.Type == batch.JobComplete && c.Status == v1.ConditionTrue { return true } } return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/controller/job/util/utils_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2.go
deleteFromActiveList(cronJob, j.ObjectMeta.UID) jm.recorder.Eventf(cronJob, corev1.EventTypeNormal, "SawCompletedJob", "Saw completed job: %s, condition: %v", j.Name, condition) updateStatus = true } else if jobutil.IsJobSucceeded(j) { // a job does not have to be in active list, as long as it has completed successfully, we will process the timestamp if cronJob.Status.LastSuccessfulTime == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 29.2K bytes - Viewed (0)