Open ping15 opened 4 months ago
@ping15 没有定位到原因前 issue 名称写的宽泛一点:服务实例并发请求数量过大
get_instances_by_scope_with_checker
方法,可传入 steps: models.SubscriptionStep
,get_instances_by_scope_with_checker 会调用 get_instances_by_scope2.
的 step.params
进行检查,如果不存在 cmdb_instance.process
,则不需要调用 add_process_info_to_instances
get_instances_by_scope_with_checker
对 scope
注入 with_info
,如果 "process" 信息需要,设置为 with_info: {"process": true}
,with_info
用于 get_instances_by_scope
判断是否需要调用 add_process_info_to_instances
get_instances_by_scope
的地方,都改成 get_instances_by_scope_with_checker
@ping15 如何判断 params
是否存在 cmdb_instance.process
?把 params
先用 json.dump
转为字符串
目前已有的配置模板里,没有用到 process
"list_service_instance_detail"
"list_service_instance_detail" AND "bk_host_list"
"list_service_instance_detail" AND "service_instance_ids"
"list_service_instance_detail" NOT "service_instance_ids" NOT "bk_host_list" AND "'with_name': true, 'bk_module_id'"
"list_service_instance_detail" NOT "service_instance_ids" NOT "bk_host_list" NOT "'with_name': true, 'bk_module_id'"
问题描述
截屏
请提供截屏来解释你的问题,当然这也能更好地帮助我们理解问题。
请提供以下信息
重现方法
修复
建议的修复方案
修复方案
功能自测
功能点 1
描述代码变更涉及功能点及自测截图
功能点 2
描述代码变更涉及功能点及自测截图
...