Bugfix: Improve how JobController use queue for backoff#52091
Conversation
|
Hi @clamoriniere1A. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/assign |
|
/assign @soltysh |
|
/kind bug |
|
/ok-to-test |
b90bb4a to
48116da
Compare
Centralize the key "forget" and "requeue" process in only on method. Change the signature of the syncJob method in order to return the information if it is necessary to forget the backoff delay for a given key.
|
/test pull-kubernetes-federation-e2e-gce |
|
/test pull-kubernetes-e2e-kops-aws |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: clamoriniere1A, soltysh Associated issue: 51153 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
Automatic merge from submit-queue (batch tested with PRs 52091, 52071) |
What this PR does / why we need it:
In some cases, the backoff delay for a given Job is reset unnecessarily.
the PR improves how JobController uses queue for backoff:
information if it is necessary to forget the backoff delay for a given
key.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #Links to #51153
Special notes for your reviewer:
Release note: