Add a retry sleep duration to retrieve script

This commit is contained in:
Matt Pryor 2023-06-19 14:38:09 +01:00
parent f41e8a2fb0
commit c7e7b6eb86

View File

@ -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