[VAULT-28666] Remove the errexit option from the retry script and add increasing wait on failure (up to 5 seconds and 5 retries) (#27842)

Co-authored-by: VAL <val@hashicorp.com>
This commit is contained in:
Kuba Wieczorek
2024-07-23 18:58:37 +01:00
committed by GitHub
parent 575a632073
commit 74d15e3d50

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc. # Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1 # SPDX-License-Identifier: BUSL-1.1
set -euo pipefail set -uo pipefail
tries=5 tries=5
count=0 count=0
@@ -14,5 +14,5 @@ do
fi fi
((count++)) ((count++))
echo "trying again, attempt $count" echo "trying again, attempt $count"
sleep 2 sleep $count
done done