mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 03:48:49 +02:00
increased timeout to get rid of asyncio logger errors
This commit is contained in:
@@ -355,7 +355,7 @@ async def is_connected(request: Request) -> Callable[[], bool]:
|
||||
def is_connected_sync() -> bool:
|
||||
future = asyncio.run_coroutine_threadsafe(request.is_disconnected(), main_loop)
|
||||
try:
|
||||
is_connected = not future.result(timeout=0.01)
|
||||
is_connected = not future.result(timeout=0.05)
|
||||
return is_connected
|
||||
except asyncio.TimeoutError:
|
||||
logger.error("Asyncio timed out")
|
||||
|
Reference in New Issue
Block a user