fix(embed): fast-fail + auto-restart Ollama on solved-search hang
Embeddings timeout was 120s, causing multi-minute hangs when Ollama was down during F4/F6/F7 solved-search. Now: connect_timeout=5s across all HTTP clients (REST + Ollama), read_timeout reduced to 30s for embeddings, and OllamaEmbeddings auto-restarts the server on ConnectionError before degrading gracefully. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ class RestClient:
|
||||
url,
|
||||
json=args,
|
||||
headers={"X-API-Key": self.cfg.api_key},
|
||||
timeout=self.cfg.timeout,
|
||||
timeout=(self.cfg.connect_timeout, self.cfg.timeout),
|
||||
verify=verify,
|
||||
)
|
||||
except requests.RequestException as e:
|
||||
|
||||
Reference in New Issue
Block a user