Skip to content

Commit

Permalink
feat: 订阅下发支持动态分组 (closed TencentBlueKing#2507)
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 27772
  • Loading branch information
ping15 committed Dec 25, 2024
1 parent 34b11ba commit a0bd3bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/backend/subscription/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def get_instances_by_scope_with_checker(
return get_instances_by_scope(scope, *args, **kwargs)


# @support_multi_biz
@support_multi_biz
@SetupObserve(histogram=metrics.app_task_get_instances_by_scope_duration_seconds, get_labels_func=get_scope_labels_func)
@FuncCacheDecorator(cache_time=SUBSCRIPTION_SCOPE_CACHE_TIME)
def get_instances_by_scope(scope: Dict[str, Union[Dict, int, Any]]) -> Dict[str, Dict[str, Union[Dict, Any]]]:
Expand Down
4 changes: 1 addition & 3 deletions common/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,13 @@ def __call__(
use_admin=False,
headers=None,
url=None,
format_kwargs=None
format_kwargs=None,
):
"""
调用传参
@param {Boolean} raw 是否返回原始内容
"""
if format_kwargs:
self.url = self.url.format(**format_kwargs)
if params is None:
params = {}
if headers is None:
Expand Down

0 comments on commit a0bd3bd

Please sign in to comment.