From 15a16f279bf3e4dfb4981f38eef237bb99e6134e Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 7 Jan 2026 16:21:04 +0000 Subject: [PATCH] bump agentapi start timeout --- .../agentapi/scripts/agentapi-wait-for-start.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 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 0d1960e9..40bb9c3d 100644 --- a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh +++ b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh @@ -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