even more wait
This commit is contained in:
parent
15a16f279b
commit
3829a20756
@ -11,14 +11,14 @@ 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 30); do
|
while true; do
|
||||||
sleep 1
|
|
||||||
if curl -f "http://localhost:$port/status"; then
|
if curl -f "http://localhost:$port/status"; then
|
||||||
echo "agentapi response received"
|
echo "$(date): agentapi response received"
|
||||||
agentapi_started=true
|
agentapi_started=true
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "agentapi server not responding ($i/30)"
|
echo "$(date): agentapi server not responding"
|
||||||
|
sleep 1
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user