Fix cronjob panic on status update failure

pull/6/head
Janet Kuo 2017-02-17 11:29:39 -08:00
parent 68814c0203
commit 6753544949
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ func SyncOne(sj batch.CronJob, js []batch.Job, now time.Time, jc jobControlInter
updatedSJ, err := sjc.UpdateStatus(&sj)
if err != nil {
glog.Errorf("Unable to update status for %s (rv = %s): %v", nameForLog, sj.ResourceVersion, err)
return
}
sj = *updatedSJ