-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry job update after failure to prevent modification conflict #37077
Conversation
func UpdateJobWithRetries(c clientset.Interface, namespace, name string, applyUpdate updateJobFunc) (job *batch.Job, err error) { | ||
jobs := c.Batch().Jobs(namespace) | ||
var updateErr error | ||
pollErr := wait.Poll(10*time.Millisecond, 1*time.Minute, func() (bool, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use PollImmediate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm... shouldn't we use it for other *WithRetries here as well?
One comment, LGTM in general |
@k8s-bot verify test this |
Jenkins verification failed for commit e3989c3. Full PR test history. The magic incantation to run this job again is |
Nit addressed, applying label based on previous approval. |
Re-applying label back, I've updated bazel. |
Jenkins CRI GCE Node e2e failed for commit bbe654616f1bb047298ce644769a785cc7d6a06f. Full PR test history. The magic incantation to run this job again is |
Jenkins kops AWS e2e failed for commit b253c20. Full PR test history. The magic incantation to run this job again is |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
This fixes #34585 flake.
@janetkuo || @kubernetes/sig-apps ptal
I've been getting too many emails recently wrt to that issue, so I wanted to "clean" my inbox a bit 😉
This change is