Skip to content

Commit

Permalink
Increase http read/write timeout (#38)
Browse files Browse the repository at this point in the history
We saw that during upsert of large batches, index might fail to
answer in 2 minutes if it is performing indexing in the background.

Therefore, I am bumping the http timeout to 10 minutes until we
make it faster on the backend.
  • Loading branch information
mdumandag authored Jan 3, 2025
1 parent 7f3d779 commit cafb37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upstash_vector/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
self._url = url
self._client = httpx.Client(
timeout=httpx.Timeout(
timeout=120.0,
timeout=600.0,
connect=10.0,
)
)
Expand Down Expand Up @@ -97,7 +97,7 @@ def __init__(
self._headers = generate_headers(token)
self._client = httpx.AsyncClient(
timeout=httpx.Timeout(
timeout=120.0,
timeout=600.0,
connect=10.0,
)
)
Expand Down

0 comments on commit cafb37b

Please sign in to comment.