This commit is contained in:
2026-11-19 13:39:53 +03:00
parent 470d9d6f1e
commit 1d81159dd3
99 changed files with 10577 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
python3 - "${1:-120}" <<'PYTHON'
import sys,time,urllib.request,urllib.error
end=time.monotonic()+int(sys.argv[1])
while time.monotonic()<end:
try:
with urllib.request.urlopen('http://localhost:8080/health/ready',timeout=3) as r:
if r.status==200:
print('ready');sys.exit(0)
except (OSError,urllib.error.URLError):
pass
time.sleep(1)
raise SystemExit('API not ready before deadline')
PYTHON