From 3829a20756563db176a005774313d55a362b964d Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 7 Jan 2026 16:27:41 +0000 Subject: [PATCH] even more wait --- .../modules/agentapi/scripts/agentapi-wait-for-start.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh index 40bb9c3d..47f1ab34 100644 --- a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh +++ b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh @@ -11,14 +11,14 @@ port=${1:-3284} agentapi_started=false echo "Waiting for agentapi server to start on port $port..." -for i in $(seq 1 30); do - sleep 1 +while true; do if curl -f "http://localhost:$port/status"; then - echo "agentapi response received" + echo "$(date): agentapi response received" agentapi_started=true break else - echo "agentapi server not responding ($i/30)" + echo "$(date): agentapi server not responding" + sleep 1 continue fi done