fix: auto-fix code issues (cron)
- 修复重复导入/字段 - 修复异常处理 - 修复PEP8格式问题 - 添加类型注解 - 修复main.py中的语法错误(缺失try语句的from导入) - 添加缺失的timedelta导入到plugin_manager.py - 添加缺失的urllib.parse导入到plugin_manager.py和workflow_manager.py - 添加缺失的os导入到document_processor.py - 修复import排序问题 - 修复行长度超过100字符的问题 - 添加缺失的Alert导入到test_phase8_task8.py - 添加缺失的get_export_manager导入到main.py
This commit is contained in:
@@ -1739,7 +1739,10 @@ class OpsManager:
|
||||
elif current_utilization < policy.scale_down_threshold:
|
||||
if current_instances > policy.min_instances:
|
||||
action = ScalingAction.SCALE_DOWN
|
||||
reason = f"利用率 {current_utilization:.1%} 低于缩容阈值 {policy.scale_down_threshold:.1%}"
|
||||
reason = (
|
||||
f"利用率 {current_utilization:.1%} 低于缩容阈值 "
|
||||
f"{policy.scale_down_threshold:.1%}"
|
||||
)
|
||||
|
||||
if action:
|
||||
if action == ScalingAction.SCALE_UP:
|
||||
|
||||
Reference in New Issue
Block a user