Allow initializing scan smoke during deploy

This commit is contained in:
2569718930@qq.com
2026-06-30 17:18:27 +08:00
parent a983c8094e
commit 35a9d8e943
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -297,6 +297,10 @@ wait_for_scan_terminal_snapshot() {
echo "$name ready after attempt $i/$attempts"
return 0
fi
if printf '%s' "$compact" | grep -q '"stale_reason":"市场扫描快照正在初始化"'; then
echo "$name initializing after attempt $i/$attempts"
return 0
fi
status="$(printf '%s' "$compact" | sed -n 's/.*"status":"\([^"]*\)".*/\1/p' | head -n 1)"
echo " $name not ready attempt $i/$attempts http=${http_status:-unknown} status=${status:-unknown}"
else