Repository navigation
fix(swarm): retry failed tasks 5 times, 60s apart - #260
Merged
Merged
Conversation
After a node restarts, image pulls can fail for a few minutes. With max_attempts 3 and 5s delay, a rescheduled task used up all retries in that window and the service stayed down. 5 attempts 60s apart cover about 5 minutes. Refs buzz-code/ops#31 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012GTicuLHoZVhu892FpPTnw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
restart_policyindocker-compose-swarm.ymlgoes frommax_attempts: 3, delay: 5stomax_attempts: 5, delay: 60s.After a node restarts, image pulls can fail for a few minutes. On 2026-11-04 a rescheduled task used up all 3 retries inside that window, and the service stayed down for about 2 hours. 5 attempts 60s apart cover about 5 minutes.
Applies after "Pull and redeploy" of the Portainer stack. No image rebuild.
Refs buzz-code/ops#31
Generated by Claude Code