From c87eb2cfcf096e2e421851a2679ddffe9a57d10b Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 6 Sep 2025 23:56:24 +0800 Subject: [PATCH] Increase timeout buffers for async function calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Extend execution timeout buffer to 150s • Extend task duration buffer to 180s • Account for low-level retry delays • Improve health check phase handling • Reduce timeout-related failures --- lightrag/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lightrag/utils.py b/lightrag/utils.py index f3b3ae44..cea1ee75 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -473,12 +473,12 @@ def priority_limit_async_func_call( nonlocal max_execution_timeout, max_task_duration if max_execution_timeout is None: max_execution_timeout = ( - llm_timeout + 30 - ) # LLM timeout + 30s buffer for network delays + llm_timeout + 150 + ) # LLM timeout + 150s buffer for low-level retry if max_task_duration is None: max_task_duration = ( - llm_timeout + 60 - ) # LLM timeout + 1min buffer for execution phase + llm_timeout + 180 + ) # LLM timeout + 180s buffer for health check phase queue = asyncio.PriorityQueue(maxsize=max_queue_size) tasks = set()