Skip to content

Commit 490ba7b

Browse files
committed
Add event
1 parent 94d9c56 commit 490ba7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/controllers/job/job_controller.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,9 @@ func (cc *Controller) processNextReq(count uint32) bool {
328328
queue.AddRateLimited(req)
329329
return true
330330
}
331-
332-
glog.V(2).Infof("Dropping job<%s/%s> out of the queue: %v", jobInfo.Job.Namespace, jobInfo.Job.Name, err)
331+
cc.recordJobEvent(jobInfo.Job.Namespace, jobInfo.Job.Name, vkbatchv1.ExecuteAction, fmt.Sprintf(
332+
"Job failed on action %s for retry limit reached", action))
333+
glog.Warningf("Dropping job<%s/%s> out of the queue: %v because max retries has reached", jobInfo.Job.Namespace, jobInfo.Job.Name, err)
333334
}
334335

335336
// If no error, forget it.

0 commit comments

Comments
 (0)