bump agentapi start timeout
This commit is contained in:
parent
a6aca54728
commit
15a16f279b
@ -11,18 +11,16 @@ port=${1:-3284}
|
|||||||
agentapi_started=false
|
agentapi_started=false
|
||||||
|
|
||||||
echo "Waiting for agentapi server to start on port $port..."
|
echo "Waiting for agentapi server to start on port $port..."
|
||||||
for i in $(seq 1 150); do
|
for i in $(seq 1 30); do
|
||||||
for j in $(seq 1 3); do
|
sleep 1
|
||||||
sleep 0.1
|
|
||||||
if curl -f "http://localhost:$port/status"; then
|
if curl -f "http://localhost:$port/status"; then
|
||||||
echo "agentapi response received ($j/3)"
|
echo "agentapi response received"
|
||||||
else
|
|
||||||
echo "agentapi server not responding ($i/15)"
|
|
||||||
continue 2
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
agentapi_started=true
|
agentapi_started=true
|
||||||
break
|
break
|
||||||
|
else
|
||||||
|
echo "agentapi server not responding ($i/30)"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$agentapi_started" != "true" ]; then
|
if [ "$agentapi_started" != "true" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user