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> |
||
|---|---|---|
| .. | ||
| services | ||
| __init__.py | ||
| db_models.py | ||
| db_utils.py | ||
| init_data.py | ||
| reload_config_base.py | ||
| runtime_config.py | ||