mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +00:00
Log the error when unable to update job.
This commit is contained in:
parent
2e5a3cfbc6
commit
c99df5e3a4
@ -341,7 +341,7 @@ func (jm *JobController) syncJob(key string) error {
|
|||||||
job.Status.Unsuccessful = unsuccessful
|
job.Status.Unsuccessful = unsuccessful
|
||||||
|
|
||||||
if err := jm.updateHandler(&job); err != nil {
|
if err := jm.updateHandler(&job); err != nil {
|
||||||
glog.Errorf("Failed to update job %v, requeuing", job.Name)
|
glog.Errorf("Failed to update job %v, requeuing. Error: %v", job.Name, err)
|
||||||
jm.enqueueController(&job)
|
jm.enqueueController(&job)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user