Skip to content

Commit b77c5b6

Browse files
committed
chore: reduce vm redeploy verification attempts
1 parent 2a23c56 commit b77c5b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/images/scripts/redeploy_azure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ log_info "You can press Ctrl+C to exit at any time."
676676
echo ""
677677

678678
SERVER_URL="http://${NEW_PUBLIC_IP}:3001/uptime"
679-
MAX_ATTEMPTS=40 # 10 minutes max (40 * 15s)
679+
MAX_ATTEMPTS=10 # Max 10 retries
680680
ATTEMPT=0
681681
SLEEP_INTERVAL=15
682682

@@ -697,7 +697,7 @@ done
697697

698698
if [ $ATTEMPT -ge $MAX_ATTEMPTS ]; then
699699
echo ""
700-
log_warning "Server check timed out after $((MAX_ATTEMPTS * SLEEP_INTERVAL / 60)) minutes"
700+
log_warning "Server check timed out after $MAX_ATTEMPTS attempts"
701701
log_info "The VM may still be starting up. Check manually:"
702702
log_info " curl -v http://${NEW_PUBLIC_IP}:3001/uptime"
703703
fi

packages/images/scripts/redeploy_gcp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ log_info "You can press Ctrl+C to exit at any time."
557557
echo ""
558558

559559
SERVER_URL="http://${NEW_EXTERNAL_IP}:3001/uptime"
560-
MAX_ATTEMPTS=40 # 10 minutes max (40 * 15s)
560+
MAX_ATTEMPTS=10 # Max 10 retries
561561
ATTEMPT=0
562562
SLEEP_INTERVAL=15
563563

@@ -578,7 +578,7 @@ done
578578

579579
if [ $ATTEMPT -ge $MAX_ATTEMPTS ]; then
580580
echo ""
581-
log_warning "Server check timed out after $((MAX_ATTEMPTS * SLEEP_INTERVAL / 60)) minutes"
581+
log_warning "Server check timed out after $MAX_ATTEMPTS attempts"
582582
log_info "The VM may still be starting up. Check manually:"
583583
log_info " curl -v http://${NEW_EXTERNAL_IP}:3001/uptime"
584584
fi

0 commit comments

Comments
 (0)