bump agentapi start timeout

This commit is contained in:
Cian Johnston 2026-01-07 16:21:04 +00:00
parent a6aca54728
commit 15a16f279b
No known key found for this signature in database
GPG Key ID: F57401F0A40CBB29

View File

@ -11,18 +11,16 @@ port=${1:-3284}
agentapi_started=false
echo "Waiting for agentapi server to start on port $port..."
for i in $(seq 1 150); do
for j in $(seq 1 3); do
sleep 0.1
for i in $(seq 1 30); do
sleep 1
if curl -f "http://localhost:$port/status"; then
echo "agentapi response received ($j/3)"
echo "agentapi response received"
agentapi_started=true
break
else
echo "agentapi server not responding ($i/15)"
continue 2
echo "agentapi server not responding ($i/30)"
continue
fi
done
agentapi_started=true
break
done
if [ "$agentapi_started" != "true" ]; then