Skip to content

Retry on a 5 minute interval if managed upgrade is blocked my maintenance windows - #272

Merged
Josh Matthews (jmatth) merged 3 commits into
mainfrom
retry-managed-upgrades
Jul 15, 2026
Merged

Retry on a 5 minute interval if managed upgrade is blocked my maintenance windows#272
Josh Matthews (jmatth) merged 3 commits into
mainfrom
retry-managed-upgrades

Conversation

@jmatth

Copy link
Copy Markdown
Member

This fixes an edge case in agent managed upgrades where an upgrade blocked by maintenance windows wouldn't retry for at least another hour, or 24 hours by default. This could lead to a situation where machines with very restrictive maintenance windows never apply upgrades. The new behavior is to enter a 5 minute retry loop when blocked by maintenance windows until an upgrade check succeeds. It will log a warning when entering this state but not on every subsequent loop. 5 minutes was chosen arbitrarily, we can change it or make it configurable

@jmatth
Josh Matthews (jmatth) merged commit b70ae40 into main Jul 15, 2026
6 checks passed
@jmatth
Josh Matthews (jmatth) deleted the retry-managed-upgrades branch July 15, 2026 19:30
Evan Dorsky (EvanDorsky) pushed a commit to EvanDorsky/viam-agent that referenced this pull request Aug 3, 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.

2 participants