From 1db4d81dbbb5193729d63720be13cb35949dd23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MANSUY?= Date: Thu, 4 Dec 2025 19:18:40 +0800 Subject: [PATCH] cherry-pick 6489aaa7 --- lightrag/api/lightrag_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index c4f4a3b1..ec8b2f45 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -330,7 +330,12 @@ def create_app(args): # Only perform cleanup in Uvicorn single-process mode if "LIGHTRAG_GUNICORN_MODE" not in os.environ: # Clean up shared data + logger.debug("Unvicorn Mode: finalize shared storage...") finalize_share_data() + else: + logger.debug( + "Gunicorn Mode: don not finalize shared storage in worker process" + ) # Initialize FastAPI base_description = (