Commit 6b5c8f1d authored by peay's avatar peay

Emit warning when CronJob cannot determine starting time

parent 56b1082d
...@@ -174,6 +174,7 @@ func SyncOne(sj batch.CronJob, js []batch.Job, now time.Time, jc jobControlInter ...@@ -174,6 +174,7 @@ func SyncOne(sj batch.CronJob, js []batch.Job, now time.Time, jc jobControlInter
} }
times, err := getRecentUnmetScheduleTimes(sj, now) times, err := getRecentUnmetScheduleTimes(sj, now)
if err != nil { if err != nil {
recorder.Eventf(&sj, v1.EventTypeWarning, "FailedNeedsStart", "Cannot determine if job needs to be started: %v", err)
glog.Errorf("Cannot determine if %s needs to be started: %v", nameForLog, err) glog.Errorf("Cannot determine if %s needs to be started: %v", nameForLog, err)
} }
// TODO: handle multiple unmet start times, from oldest to newest, updating status as needed. // TODO: handle multiple unmet start times, from oldest to newest, updating status as needed.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment