mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
[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:
4
.github/scripts/retry-command.sh
vendored
4
.github/scripts/retry-command.sh
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user