Skip to content

Commit

Permalink
feat: 提供 Agent 包管理后台基础接口 (closed #1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ping15 committed Feb 7, 2025
1 parent 2320543 commit 511a22f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/backend/components/collections/agent_new/stop_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
specific language governing permissions and limitations under the License.
"""

import logging
from collections import defaultdict
from typing import List

Expand All @@ -24,6 +25,8 @@
from ..subsubscription import SubSubscriptionBaseService
from .base import AgentBaseService

logger = logging.getLogger("app")


class StopPluginsService(SubSubscriptionBaseService, AgentBaseService):
@staticmethod
Expand Down Expand Up @@ -83,4 +86,5 @@ def create_subscriptions(cls, common_data: CommonData) -> List[int]:
subscription_ids = request_multi_thread(
cls.call_create_subscription_api, params_list, get_data=lambda x: [x["subscription_id"]]
)
logger.info(f"订阅ID列表: {str(subscription_ids)}")
return subscription_ids

0 comments on commit 511a22f

Please sign in to comment.