ragflow/api/db
liwenju0 814a210f5d
Fix: failed to acquire lock exception with retry mechanism for postgres and mysql (#6483)
Added the with_retry decorator in db_models.py to add a retry mechanism
for database operations. Applied the retry mechanism to the lock and
unlock methods of the PostgresDatabaseLock and MysqlDatabaseLock classes
to enhance the reliability of lock operations.

### What problem does this PR solve?
resolve failed to acquire lock exception with retry mechanism

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: wenju.li <wenju.li@deepctr.cn>
2025-03-25 15:09:56 +08:00
..
services Feat: add Langfuse APIs (#6460) 2025-03-24 18:25:43 +08:00
__init__.py Tagging (#4426) 2025-01-09 17:07:21 +08:00
db_models.py Fix: failed to acquire lock exception with retry mechanism for postgres and mysql (#6483) 2025-03-25 15:09:56 +08:00
db_utils.py Introduced beartype (#3460) 2024-11-18 17:38:17 +08:00
init_data.py Fix: empty doc id validation. (#6064) 2025-03-14 11:45:44 +08:00
reload_config_base.py Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
runtime_config.py Update version display on web UI (#3405) 2024-11-14 17:51:21 +08:00