Skip to content

Commit

Permalink
use retry
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 20, 2023
1 parent 7250f97 commit 5dd319b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@ jobs:

- name: test cluster health
run: |
sfctl cluster select
max_retry=10
counter=0
until sfctl cluster select
do
sleep 1
[[ counter -eq $max_retry ]] && echo "Failed!" && cat /home/sfuser/sfdevcluster/data/log/* && exit 1
echo "Trying again. Try #$counter"
((counter++))
done
sfctl cluster health
- name: run echo app
Expand Down

0 comments on commit 5dd319b

Please sign in to comment.