You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add detailed diagnostic information for future timeouts
- Show elapsed time, chunk size, and chunk preview when timeout occurs
- Display future state to understand if still running or finished
- Explain that future.result() timed out and request may still be running
- Direct users to check worker thread logs for more details
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
logger.warning(f"Slow embedding API response for {rel_path} chunk {idx}: {embedding_duration:.2f}s total")
212
216
exceptconcurrent.futures.TimeoutError:
213
-
logger.error(f"Embedding API timeout ({EMBEDDING_TIMEOUT}s) for {rel_path} chunk {idx} - The embedding request did not complete within {EMBEDDING_TIMEOUT}s. This may indicate network issues, API overload, or the chunk being too large.")
217
+
elapsed=time.time() -embedding_start_time
218
+
logger.error(
219
+
f"Future timeout ({EMBEDDING_TIMEOUT}s) for {rel_path} chunk {idx}:\n"
0 commit comments