We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbcacae + da7872c commit c1c4594Copy full SHA for c1c4594
cloudconfig/templates.go
@@ -96,7 +96,16 @@ if [ ! -d "$RUN_HOME" ];then
96
downloadAndExtractRunner
97
sendStatus "installing dependencies"
98
cd "$RUN_HOME"
99
- sudo ./bin/installdependencies.sh || fail "failed to install dependencies"
+ attempt=1
100
+ while true; do
101
+ sudo ./bin/installdependencies.sh && break
102
+ if [ $attempt -gt 5 ];then
103
+ fail "failed to install dependencies after $attempt attempts"
104
+ fi
105
+ sendStatus "failed to install dependencies (attempt $attempt): (retrying in 15 seconds)"
106
+ attempt=$((attempt+1))
107
+ sleep 15
108
+ done
109
else
110
sendStatus "using cached runner found in $RUN_HOME"
111
0 commit comments