fix: 添加时间间隔控制以避免频繁请求,优化report.py中的状态更新逻辑

This commit is contained in:
晓丰 2025-06-15 14:05:28 +08:00
parent 2aace9ffe9
commit 603ad33ceb

View File

@ -58,5 +58,5 @@ while True:
except Exception as e:
logger.logger.error(f"ID:{rs_id}, e:{e}")
db.update_subsequent_status_by_id(rs_id, 1, str(e))
time.sleep(5) # 避免频繁请求
time.sleep(5)