From da17c9881a157b87301d2c91945a18461df494c2 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Wed, 7 Jan 2026 17:22:03 +0000 Subject: [PATCH] bump timeout, fix infinite loop --- .../modules/agentapi/scripts/agentapi-wait-for-start.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 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 70472659..e86ce978 100644 --- a/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh +++ b/registry/coder/modules/agentapi/scripts/agentapi-wait-for-start.sh @@ -3,8 +3,8 @@ set -o errexit set -o pipefail port=${1:-3284} -start_timeout=${2:-15} -listen_timeout=${3:-15} +start_timeout=${2:-30} +listen_timeout=${3:-30} # This script waits for the agentapi server to start on port 3284. # It considers the server started after 3 consecutive successful responses. @@ -29,6 +29,7 @@ while true; do continue fi echo "agentapi process started with pid ${agentapi_pid} after ${elapsed} seconds" + break done echo "Waiting for agentapi to start listening on port ${port}..."