fix(ops): report Ollama embed failures accurately
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-07-10 21:56:00 +08:00
parent b8cc27e4c4
commit 5dde049a07
3 changed files with 60 additions and 9 deletions

View File

@@ -108,8 +108,16 @@ curl_probe "110 proxy secondary" "$PROXY_SECONDARY_URL" "/api/version" 10 && pro
if [[ "$RUN_EMBED_PROBE" == "1" ]]; then
say ""
say "Embedding runtime probe model=${EMBED_MODEL} timeout=${EMBED_TIMEOUT}s"
[[ "$primary_version_ok" == "1" ]] && embed_probe "GCP-A embed" "$PRIMARY_URL" || status_line WARN "GCP-A embed" "skipped because /api/version is not healthy"
[[ "$secondary_version_ok" == "1" ]] && embed_probe "GCP-B embed" "$SECONDARY_URL" || status_line WARN "GCP-B embed" "skipped because /api/version is not healthy"
if [[ "$primary_version_ok" == "1" ]]; then
embed_probe "GCP-A embed" "$PRIMARY_URL" || true
else
status_line WARN "GCP-A embed" "skipped because /api/version is not healthy"
fi
if [[ "$secondary_version_ok" == "1" ]]; then
embed_probe "GCP-B embed" "$SECONDARY_URL" || true
else
status_line WARN "GCP-B embed" "skipped because /api/version is not healthy"
fi
if [[ "$INCLUDE_111_EMBED" == "1" ]]; then
embed_probe "111 embed" "$FALLBACK_URL" || true
else