Add a retry sleep duration to retrieve script
This commit is contained in:
parent
f41e8a2fb0
commit
c7e7b6eb86
@ -9,7 +9,6 @@ set -e
|
||||
#####
|
||||
|
||||
|
||||
|
||||
retries=0
|
||||
retry_limit=20
|
||||
while true; do
|
||||
@ -23,6 +22,6 @@ while true; do
|
||||
echo "Retries timed out. Check 'sonobuoy retrieve' command."
|
||||
exit 1
|
||||
fi
|
||||
echo "Error retrieving results. Waiting ${STATUS_INTERVAL_SEC}s to retry...[${retries}/${retry_limit}]"
|
||||
sleep "${STATUS_INTERVAL_SEC}"
|
||||
echo "Error retrieving results. Waiting 30s to retry...[${retries}/${retry_limit}]"
|
||||
sleep 30
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user