Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .ci/load/scripts/load_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
set -exuo pipefail

POLL_FREQ=1
POLL_TIMEOUT=300

LOCUST_LOCUSTFILE="../locust.py"
LOCUST_PRINT_STATS=1
Expand Down Expand Up @@ -86,11 +87,16 @@ function appIsReady() {
}

function waitForApp() {
counter=1
while :
do
if appIsReady; then
break
elif [ $counter -gt $POLL_TIMEOUT ]; then
echo "Poll timeout exceeded. Exiting with error code: 1"
exit 1
fi
((counter++))
sleep $POLL_FREQ;
done
}
Expand Down