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 = (