mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-12 23:40:03 +08:00
收窄熔断判断范围,修改熔断逻辑 (#2145)
This commit is contained in:
@@ -57,3 +57,7 @@ def db_unhealthy_reason() -> str:
|
||||
|
||||
def should_pause_tasks() -> bool:
|
||||
return is_overloaded() or is_db_unhealthy()
|
||||
|
||||
|
||||
def should_pause_db_tasks() -> bool:
|
||||
return is_db_unhealthy()
|
||||
|
||||
Reference in New Issue
Block a user