Open ping15 opened 2 months ago
简明扼要地描述bug是什么
请提供截屏来解释你的问题,当然这也能更好地帮助我们理解问题。
{ "levelname": "ERROR", "asctime": "2024-06-17 14:40:01,449", "pathname": "/app/apps/backend/subscription/tasks.py", "lineno": 545, "funcName": "wrapper", "process": 6, "thread": 139901412554496, "message": "[sub_lifecycle<sub(885453), task(173030218)>][run_subscription_task_and_create_instance_transaction] failed", "exc_info": "Traceback (most recent call last):\n\ File \"/app/apps/backend/subscription/tasks.py\", line 540, in wrapper\n\ func_result = func(subscription, subscription_task, *args, **kwargs)\n\ File \"/app/apps/backend/subscription/tasks.py\", line 602, in run_subscription_task_and_create_instance\n\ scope, steps, source=\"run_subscription_task_and_create_instance\", tolerance_time=tolerance_time\n\ File \"/app/apps/backend/subscription/tools.py\", line 841, in get_instances_by_scope_with_checker\n\ return get_instances_by_scope(scope, *args, **kwargs)\n\ File \"/app/apps/backend/subscription/tools.py\", line 799, in wrapper\n\ results = request_multi_thread(get_instances_by_scope_func, params_list, get_data=lambda x: [x])\n\ File \"/app/apps/utils/batch_request.py\", line 170, in request_multi_thread\n\ result.extend(get_data(future.result()))\n\ File \"/usr/local/lib/python3.6/concurrent/futures/_base.py\", line 425, in result\n\ return self.__get_result()\n\ File \"/usr/local/lib/python3.6/concurrent/futures/_base.py\", line 384, in __get_result\n\ raise self._exception\n\ File \"/usr/local/lib/python3.6/concurrent/futures/thread.py\", line 56, in run\n\ result = self.fn(*self.args, **self.kwargs)\n\ File \"/app/apps/utils/translation.py\", line 93, in __call__\n\ return wrapped(*args, **kwargs)\n\ File \"/app/apps/prometheus/helper.py\", line 213, in __call__\n\ return self.wrapped_executor(wrapped, instance, args, kwargs)\n\ File \"/app/apps/prometheus/helper.py\", line 137, in wrapped_executor\n\ result = wrapped(*args, **kwargs)\n\ File \"/app/apps/core/concurrent/cache.py\", line 101, in __call__\n\ func_result = wrapped(*args, **kwargs)\n\ File \"/app/apps/backend/subscription/tools.py\", line 904, in get_instances_by_scope\n\ [{\"service\": inst} for inst in get_service_instance_by_inst(bk_biz_id, nodes, module_to_topo)]\n\ File \"/app/apps/backend/subscription/tools.py\", line 410, in get_service_instance_by_inst\n\ batch_request, params, extend_result=True, interval=constants.LIST_SERVICE_INSTANCE_DETAIL_INTERVAL\n\ File \"/app/apps/utils/concurrent.py\", line 88, in batch_call\n\ result.extend(get_data(future.result()))\n\ File \"/usr/local/lib/python3.6/concurrent/futures/_base.py\", line 425, in result\n\ return self.__get_result()\n\ File \"/usr/local/lib/python3.6/concurrent/futures/_base.py\", line 384, in __get_result\n\ raise self._exception\n\ File \"/usr/local/lib/python3.6/concurrent/futures/thread.py\", line 56, in run\n\ result = self.fn(*self.args, **self.kwargs)\n\ File \"/app/apps/utils/translation.py\", line 93, in __call__\n\ return wrapped(*args, **kwargs)\n\ File \"/app/apps/utils/concurrent.py\", line 40, in inner\n\ return func(*args, **kwargs)\n\ File \"/app/apps/utils/batch_request.py\", line 81, in batch_request\n\ query_res = func(request_params)\n\ File \"/app/common/api/base.py\", line 202, in __call__\n\ permission=response.permission,\n\ apps.exceptions.ApiResultError: [1642903] [配置平台]API请求异常:(API rate limit exceeded by resource strategy) path => /api/c/compapi/v2/cc/list_service_instance_detail/", "otelSpanID": "26a06ee5b08bdda0", "otelTraceID": "17305c08e818b7ba402fe80ccef8067a", "otelServiceName": "bk-nodeman-backend" }
列出如何重现的方法或操作步骤
代码变更覆盖功能点需要自测并截图
描述代码变更涉及功能点及自测截图
问题描述
截屏
请提供截屏来解释你的问题,当然这也能更好地帮助我们理解问题。
请提供以下信息
重现方法
修复
建议的修复方案
修复方案
功能自测
功能点 1
描述代码变更涉及功能点及自测截图
功能点 2
描述代码变更涉及功能点及自测截图
...