Skip to content

Commit

Permalink
Add event
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Aug 19, 2019
1 parent 94d9c56 commit 490ba7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/controllers/job/job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,9 @@ func (cc *Controller) processNextReq(count uint32) bool {
queue.AddRateLimited(req)
return true
}

glog.V(2).Infof("Dropping job<%s/%s> out of the queue: %v", jobInfo.Job.Namespace, jobInfo.Job.Name, err)
cc.recordJobEvent(jobInfo.Job.Namespace, jobInfo.Job.Name, vkbatchv1.ExecuteAction, fmt.Sprintf(
"Job failed on action %s for retry limit reached", action))
glog.Warningf("Dropping job<%s/%s> out of the queue: %v because max retries has reached", jobInfo.Job.Namespace, jobInfo.Job.Name, err)
}

// If no error, forget it.
Expand Down

0 comments on commit 490ba7b

Please sign in to comment.