MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / start_group

Method start_group

mod/project/java/groupMod.py:1128–1143  ·  view source on GitHub ↗
(get)

Source from the content-addressed store, hash-verified

1126
1127 @staticmethod
1128 def start_group(get):
1129 try:
1130 group_id = get.group_id.strip()
1131 except:
1132 return json_response(status=False, msg="参数错误")
1133
1134 g = Group(group_id)
1135 if not g.config:
1136 return json_response(status=False, msg="项目组不存在")
1137
1138 res = g.run_operation("start")
1139
1140 if isinstance(res, str):
1141 return json_response(status=False, msg=res)
1142 else:
1143 return json_response(status=True, msg="启动进行中")
1144
1145 @staticmethod
1146 def stop_group(get):

Callers

nothing calls this directly

Calls 3

run_operationMethod · 0.95
json_responseFunction · 0.90
GroupClass · 0.70

Tested by

no test coverage detected