mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-04 20:31:29 +02:00
@@ -36,7 +36,8 @@ function retry() {
|
||||
${command} && break # substitute your command here
|
||||
retry_result=$?
|
||||
n=$[$n+1]
|
||||
sleep 1
|
||||
# approximated binary exponential backoff to reduce flakiness
|
||||
sleep $((n ** 2))
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user