Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions hospexplorer/ask/kb_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ def add_pdf_to_kb(file_bytes, filename, title, url=None):
)
response.raise_for_status()
return response.json()
except httpx.TimeoutException as e:
# ReadTimeout/WriteTimeout are TransportError subclasses
# let them propagate so the caller's timeout handler runs instead
# of the retry loop
logger.warning(
"KB PDF push timed out for %s: %s; not retrying (KB may still be processing)",
filename, e,
)
raise
except httpx.TransportError as e:
last_exc = e
if attempt == attempts:
Expand Down