From 4f3a448fa517a3b071a2c86ec6e810102b62e396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com> Date: Thu, 6 Aug 2026 18:24:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E4=B8=89=E5=A5=97=E5=B2=97=E4=BD=8D=E6=8F=A1=E6=89=8B=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=B0=B1=E7=BB=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deploy-fifth-domain-daily-persona-systems.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server-tools/persona-team-handshake/deploy-fifth-domain-daily-persona-systems.sh b/server-tools/persona-team-handshake/deploy-fifth-domain-daily-persona-systems.sh index b84377c..515044e 100755 --- a/server-tools/persona-team-handshake/deploy-fifth-domain-daily-persona-systems.sh +++ b/server-tools/persona-team-handshake/deploy-fifth-domain-daily-persona-systems.sh @@ -191,7 +191,15 @@ for unit in "${handshakes[@]}"; do systemctl restart "$unit" done for port in 3932 3933 3934; do - test "$(curl -fsS "http://127.0.0.1:${port}/health" | jq -r .ok)" = "true" + ready=0 + for attempt in $(seq 1 30); do + if test "$(curl -fsS "http://127.0.0.1:${port}/health" 2>/dev/null | jq -r .ok 2>/dev/null)" = "true"; then + ready=1 + break + fi + sleep 1 + done + test "$ready" = 1 done before_chenglu="$(git --git-dir="${repository_root}/chenglu-agent.git" rev-parse main)"