diff --git a/bin/stacks b/bin/stacks index 5220d6d..ea3af68 100755 --- a/bin/stacks +++ b/bin/stacks @@ -431,16 +431,16 @@ _update_run() { # through to the change check — otherwise a stale image looks # "up to date" forever (this is what stuck coolify). --- local pull_ok=false attempt - for attempt in 1 2 3; do + for attempt in 1 2 3 4 5; do if (cd "$stack_dir" && docker compose "${env_flag[@]}" pull 2>&1); then pull_ok=true break fi - warn " Pull failed for $stack (attempt $attempt/3)" - [[ $attempt -lt 3 ]] && sleep $((attempt * 5)) + warn " Pull failed for $stack (attempt $attempt/5)" + [[ $attempt -lt 5 ]] && sleep $((attempt * 20)) done if ! $pull_ok; then - err " Pull failed for $stack after 3 attempts — skipping (not recreated)" + err " Pull failed for $stack after 5 attempts — skipping (not recreated)" skipped+=("$stack") continue fi @@ -540,6 +540,7 @@ Description=Daily Docker stacks image update at 2:00 AM [Timer] OnCalendar=*-*-* 02:00:00 Europe/Amsterdam +RandomizedDelaySec=1800 Persistent=true [Install]