Skip to content

fix: requeue on now or in the past#69

Merged
zachsmith1 merged 2 commits into
mainfrom
fix/requeue
Oct 22, 2025
Merged

fix: requeue on now or in the past#69
zachsmith1 merged 2 commits into
mainfrom
fix/requeue

Conversation

@zachsmith1

Copy link
Copy Markdown
Contributor

This pull request improves how the domain controller handles requeueing when a scheduled "wake" time for verification is due or in the past, and adds targeted tests to ensure this behavior. The main change is to avoid using the deprecated Requeue flag by always setting a minimal positive RequeueAfter duration when the wake time is now or has already passed.

Key changes include:

Controller logic improvements:

  • Updated the Reconcile method in domain_controller.go to return a minimal positive RequeueAfter (1 second) instead of using the deprecated Requeue flag when the wake time is now or in the past. This ensures the controller properly requeues without relying on deprecated behavior.

Testing enhancements:

  • Added TestVerification_RequeueImmediate_WhenWakeDueOrPast to verify that the controller requeues immediately (with RequeueAfter = 1s) when the next verification attempt is due now.
  • Added TestVerification_RequeueImmediate_WhenWakeInPast to check that the controller also requeues immediately when the next verification attempt was due in the past.

joshlreese
joshlreese previously approved these changes Oct 22, 2025
@zachsmith1
zachsmith1 merged commit 5cf9ccc into main Oct 22, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants