-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
deploy: pin retries to a const and forget correctly in the dc loop #9756
Conversation
@@ -375,7 +376,7 @@ func (c *DeploymentConfigController) handleErr(err error, key interface{}) { | |||
return | |||
} | |||
|
|||
if c.queue.NumRequeues(key) < 10 { | |||
if c.queue.NumRequeues(key) < MaxRetries { | |||
c.queue.AddRateLimited(key) | |||
} else { | |||
glog.V(2).Infof(err.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.
I prefer your upstream structure with the reporting on retry, return, then util.HandleErr, forget.
@deads2k comments addressed, ptal |
[test] |
Evaluated for origin test up to 57d0a81 |
lgtm |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6013/) |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6031/) (Image: devenv-rhel7_4566) |
[merge] |
Evaluated for origin merge up to 57d0a81 |
@deads2k one more for today :)