agentapi: make agentapi-wait-for-start.sh noisy

This commit is contained in:
Cian Johnston 2026-01-07 15:47:41 +00:00
parent 2701dc09af
commit 65ccc6ff48
No known key found for this signature in database
GPG Key ID: F57401F0A40CBB29

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
set -o errexit set -o errexit
set -o pipefail set -o pipefail
set -x
port=${1:-3284} port=${1:-3284}
@ -13,7 +14,7 @@ echo "Waiting for agentapi server to start on port $port..."
for i in $(seq 1 150); do for i in $(seq 1 150); do
for j in $(seq 1 3); do for j in $(seq 1 3); do
sleep 0.1 sleep 0.1
if curl -fs -o /dev/null "http://localhost:$port/status"; then if curl -f "http://localhost:$port/status"; then
echo "agentapi response received ($j/3)" echo "agentapi response received ($j/3)"
else else
echo "agentapi server not responding ($i/15)" echo "agentapi server not responding ($i/15)"