cherry-pick 6489aaa7
This commit is contained in:
parent
2321ef6e37
commit
1db4d81dbb
1 changed files with 5 additions and 0 deletions
|
|
@ -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 = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue