mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
refine db connection (#1494)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
@ -332,7 +332,7 @@ DB.lock = DatabaseLock
|
||||
def close_connection():
|
||||
try:
|
||||
if DB:
|
||||
DB.close()
|
||||
DB.close_stale(age=30)
|
||||
except Exception as e:
|
||||
LOGGER.exception(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user