Skip to content

Commit f385d44

Browse files
committed
Bump reqs.put timeout
1 parent f452e31 commit f385d44

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

weaviate/collections/batch/async_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ async def __loop(self) -> None:
229229
"Batch stream was not re-established within 5 minutes. Terminating batch."
230230
)
231231
try:
232-
await asyncio.wait_for(self.__reqs.put(req), timeout=10)
232+
await asyncio.wait_for(self.__reqs.put(req), timeout=60)
233233
except asyncio.TimeoutError as e:
234234
logger.warning(
235-
"Batch queue is blocked for more than 10 seconds. Exiting the loop"
235+
"Batch queue is blocked for more than 60 seconds. Exiting the loop"
236236
)
237237
self.__bg_exception = e
238238
return

weaviate/collections/batch/sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ def __loop(self) -> None:
192192
"Batch stream was not re-established within 5 minutes. Terminating batch."
193193
)
194194
try:
195-
self.__reqs.put(req, timeout=10)
195+
self.__reqs.put(req, timeout=60)
196196
except Full as e:
197197
logger.warning(
198-
"Batch queue is blocked for more than 10 seconds. Exiting the loop"
198+
"Batch queue is blocked for more than 60 seconds. Exiting the loop"
199199
)
200200
self.__bg_exception = e
201201
return

0 commit comments

Comments
 (0)