Skip to content

Commit

Permalink
[VAULT-28666] Remove the errexit option from the retry script and add…
Browse files Browse the repository at this point in the history
… increasing wait on failure (up to 5 seconds and 5 retries) (#27842)

Co-authored-by: VAL <[email protected]>
  • Loading branch information
kubawi and digivava authored Jul 23, 2024
1 parent 575a632 commit 74d15e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/retry-command.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
set -euo pipefail
set -uo pipefail

tries=5
count=0
Expand All @@ -14,5 +14,5 @@ do
fi
((count++))
echo "trying again, attempt $count"
sleep 2
sleep $count
done

0 comments on commit 74d15e3

Please sign in to comment.