use bounded medium client timeout for discovery
CI / test (push) Failing after 30s

This commit is contained in:
m
2026-08-29 21:36:08 +03:00
parent 1168c00caf
commit 75042e090f
+1 -1
View File
@@ -138,7 +138,7 @@ func main() {
if mediumAPIKey != "" {
mediumHeaders["Authorization"] = "Bearer " + mediumAPIKey
}
mediumHealthProbe = health.OptionalHTTPProbeWithHeaders(mediumReadinessClient, mediumEndpoint, mediumHeaders)
mediumHealthProbe = health.OptionalHTTPProbeWithHeaders(&http.Client{Timeout: 15 * time.Second}, mediumEndpoint, mediumHeaders)
// The local gateway may need several seconds to enumerate a loaded model.
// Keep this bounded, but do not classify a healthy MEDIUM provider as
// unavailable before its authenticated discovery response can arrive.