Skip to content

Commit

Permalink
sprintfix: 依赖补充 (fixed #1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Oct 24, 2023
1 parent 4b38911 commit d456910
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/backend/components/collections/agent_new/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from apps.backend.subscription.steps.agent_adapter.adapter import AgentStepAdapter
from apps.node_man import constants, models
from apps.node_man.exceptions import AliveProxyNotExistsError
from apps.prometheus import metrics
from apps.prometheus.helper import SetupObserve

from .. import job
from ..base import BaseService, CommonData
Expand Down Expand Up @@ -59,6 +61,7 @@ def sub_inst_failed_handler(self, sub_inst_ids: Union[List[int], Set[int]]):
pass

@classmethod
@SetupObserve(histogram=metrics.app_task_engine_get_common_data_duration_seconds, labels={"step_type": "AGENT"})
def get_common_data(cls, data):
"""
初始化常用数据,注意这些数据不能放在 self 属性里,否则会产生较大的 process snap shot,
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ djangorestframework==3.12.4
# django-utils-six==2.0
django-filter==21.1
django-mysql==3.3.0
django-redis==5.3.0
Mako==1.0.6
MarkupSafe==1.1.1
pyCryptodome==3.9.7
Expand Down Expand Up @@ -102,6 +103,8 @@ opentelemetry-instrumentation-dbapi==0.30b1
opentelemetry-instrumentation-redis==0.30b1
opentelemetry-instrumentation-logging==0.30b1
opentelemetry-instrumentation-requests==0.30b1
bk-monitor-report==1.2.1


apigw-manager[cryptography]==1.1.5
cryptography==3.3.2

0 comments on commit d456910

Please sign in to comment.