Merge pull request '修复:等待三套岗位握手服务就绪' (#13) from fix-jd-persona-handshake-readiness-20260806 into main

Reviewed-on: #13
This commit is contained in:
bingshuo 2026-08-06 18:27:54 +08:00
commit 7cc166a851

View file

@ -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)"