From 8d53ef7ff08c31d90eab468782b72859d9f47fd5 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 8 Sep 2025 20:03:21 +0800 Subject: [PATCH 1/2] Increase default Gunicorn worker timeout from 210 to 300 seconds --- lightrag/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/constants.py b/lightrag/constants.py index 0b3962d0..de810bc9 100644 --- a/lightrag/constants.py +++ b/lightrag/constants.py @@ -69,7 +69,7 @@ DEFAULT_EMBEDDING_FUNC_MAX_ASYNC = 8 # Default max async for embedding function DEFAULT_EMBEDDING_BATCH_NUM = 10 # Default batch size for embedding computations # Gunicorn worker timeout -DEFAULT_TIMEOUT = 210 +DEFAULT_TIMEOUT = 300 # Default llm and embedding timeout DEFAULT_LLM_TIMEOUT = 180 From 8ad7109313a8a2afb17437f26a773ff3d15e7607 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 8 Sep 2025 20:11:21 +0800 Subject: [PATCH 2/2] Fix linting --- lightrag_webui/src/features/RetrievalTesting.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag_webui/src/features/RetrievalTesting.tsx b/lightrag_webui/src/features/RetrievalTesting.tsx index 2ee823bf..c9781a41 100644 --- a/lightrag_webui/src/features/RetrievalTesting.tsx +++ b/lightrag_webui/src/features/RetrievalTesting.tsx @@ -188,7 +188,7 @@ export default function RetrievalTesting() { if (thinkEndIndex !== -1) { // Thinking has finished for this chunk assistantMessage.isThinking = false - + // Only calculate time and extract thinking content once if (!thinkingProcessed.current) { if (thinkingStartTime.current && !assistantMessage.thinkingTime) { @@ -200,7 +200,7 @@ export default function RetrievalTesting() { .trim() thinkingProcessed.current = true } - + // Always update display content as content after may grow assistantMessage.displayContent = assistantMessage.content.substring(thinkEndIndex + thinkEndTag.length).trim() } else {