Skip to content
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

[v0.10] - Always returns result with RequeueAfter set #3239

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

0xavi0
Copy link
Contributor

@0xavi0 0xavi0 commented Jan 22, 2025

Changes the gitops reconciler result to always have the polling interval in RequeueAfter. This way we take advantage of the fact that if there is already an event in the RequeueAfter queue the next ones will be dropped and we won't miss the polling cycle if there is a race condition between RequeueAfter events and any other event in the reconciler.

This is only added when DisablePolling is not set.

Refers to #3138
Refers to #3250

@0xavi0 0xavi0 self-assigned this Jan 22, 2025
@0xavi0 0xavi0 added this to the v2.10.3 milestone Jan 22, 2025
@0xavi0 0xavi0 force-pushed the 0.10-3138-requeue-after branch 2 times, most recently from fafe3ed to 78a32cb Compare January 22, 2025 16:29
@0xavi0 0xavi0 marked this pull request as ready for review January 22, 2025 16:52
@0xavi0 0xavi0 requested a review from a team as a code owner January 22, 2025 16:52
@0xavi0 0xavi0 force-pushed the 0.10-3138-requeue-after branch from 78a32cb to 3cce032 Compare January 23, 2025 08:18
Changes the gitops reconciler result to always have the polling interval in RequeueAfter.
This way we take advantage of the fact that if there is already an event in the RequeueAfter queue the next ones will be dropped and we won't miss the polling cycle if there is a race condition between RequeueAfter events and any other event in the reconciler.

This is only added when `DisablePolling` is not set.

Signed-off-by: Xavi Garcia <[email protected]>
@0xavi0 0xavi0 force-pushed the 0.10-3138-requeue-after branch from 3cce032 to 8c9800e Compare January 23, 2025 12:22
@0xavi0 0xavi0 force-pushed the 0.10-3138-requeue-after branch from f30a8a3 to afbeac4 Compare January 23, 2025 13:01
Signed-off-by: Xavi Garcia <[email protected]>
@0xavi0 0xavi0 force-pushed the 0.10-3138-requeue-after branch from afbeac4 to 32e7cf5 Compare January 23, 2025 13:04
@0xavi0 0xavi0 merged commit d68afe9 into rancher:release/v0.10 Jan 24, 2025
12 checks passed
0xavi0 added a commit to 0xavi0/fleet that referenced this pull request Jan 24, 2025
0xavi0 added a commit to 0xavi0/fleet that referenced this pull request Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants