Skip to content

Commit 548a789

Browse files
committed
bump backup wait retries
Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
1 parent 5d2e549 commit 548a789

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cluster/scripts/node-backup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ source "${TOOLS_LIB}/libcli.source"
1111
source "${SPLICE_ROOT}/cluster/scripts/utils.source"
1212

1313
RUN_ID=$(date +%s)
14+
WAIT_FOR_BACKUP_RETRIES=450
1415

1516
##### PVC Backup & Restore
1617

@@ -54,7 +55,7 @@ function wait_for_pvc_backup() {
5455
_info "Backup of $description PVC ready!"
5556
break
5657
else
57-
(( i++ )) && (( i > 300 )) && _error "Timed out waiting for backup of $description PVC"
58+
(( i++ )) && (( i > WAIT_FOR_BACKUP_RETRIES )) && _error "Timed out waiting for backup of $description PVC"
5859
sleep 5
5960
_info "still waiting..."
6061
fi
@@ -148,7 +149,7 @@ function wait_for_cloudsql_backup() {
148149
_info "Backup of $description ready! Backup ID: $id "
149150
break
150151
else
151-
(( i++ ))&& (( i > 300 )) &&_error "Timed out waiting for backup of $description db"
152+
(( i++ ))&& (( i > WAIT_FOR_BACKUP_RETRIES )) &&_error "Timed out waiting for backup of $description db"
152153
sleep 5
153154
_info "still waiting..."
154155
fi

0 commit comments

Comments
 (0)