Skip to content

fix(controller): requeue at duration threshold expiry - #76

Merged
slauger merged 1 commit into
slauger:developfrom
be-student:codex/69-requeue-threshold-expiry
Sep 6, 2026
Merged

slauger merged 1 commit into
slauger:developfrom
be-student:codex/69-requeue-threshold-expiry

Conversation

@be-student

Copy link
Copy Markdown
Contributor

Summary

  • track the earliest durationThreshold expiry among pending failing pods
  • requeue at that expiry when it is sooner than reconcileInterval
  • apply a one-second floor to avoid hot loops when an expiry is imminent or passes during reconciliation
  • document reconcileInterval as the maximum time between evaluations

Test plan

  • go test ./internal/controller -run '^TestReconcile_RequeuesAtPendingDurationThreshold$|^TestThresholdRequeueAfter$' -count=1
  • make ci

AI assistance

Codex was used to implement and validate this change. The implementation was checked with the repository's complete CI target.

Closes #69

@slauger
slauger merged commit f22b889 into slauger:develop Sep 6, 2026
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.

perf(controller): requeue at the deadline instead of a fixed interval

2 participants