Skip to content

Commit

Permalink
feat(backend): 性能优化 #2186
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Nov 29, 2023
1 parent 6ed9b7d commit 6ebe553
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 125 deletions.
5 changes: 2 additions & 3 deletions dbm-ui/backend/db_services/taskflow/views/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from backend.bk_web import viewsets
from backend.bk_web.swagger import common_swagger_auto_schema
from backend.db_services.dbbase.constants import IpSource
from backend.db_services.taskflow.exceptions import RetryNodeException
from backend.db_services.taskflow.handlers import TaskFlowHandler
from backend.db_services.taskflow.serializers import (
CallbackNodeSerializer,
Expand Down Expand Up @@ -116,8 +115,8 @@ def revoke_pipeline(self, requests, *args, **kwargs):
@action(methods=["POST"], detail=True, serializer_class=NodeSerializer)
def retry_node(self, requests, *args, **kwargs):
# 非超级用户,暂不允许调用此接口
if not requests.user.is_superuser:
raise RetryNodeException(_("非超级用户,暂不允许调用此接口"))
# if not requests.user.is_superuser:
# raise RetryNodeException(_("非超级用户,暂不允许调用此接口"))

root_id = kwargs["root_id"]
validated_data = self.params_validate(self.get_serializer_class())
Expand Down
Loading

0 comments on commit 6ebe553

Please sign in to comment.