mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 18:17:26 +02:00
Merge pull request #198 from mumoshu/fix-ci-flakiness
fix(ci): Reduce flakiness
This commit is contained in:
@@ -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