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

Method stop_group

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

Source from the content-addressed store, hash-verified

1144
1145 @staticmethod
1146 def stop_group(get):
1147 try:
1148 group_id = get.group_id.strip()
1149 except:
1150 return json_response(status=False, msg="参数错误")
1151
1152 g = Group(group_id)
1153 if not g.config:
1154 return json_response(status=False, msg="项目组不存在")
1155
1156 res = g.run_operation("stop")
1157
1158 if isinstance(res, str):
1159 return json_response(status=False, msg=res)
1160 else:
1161 return json_response(status=True, msg="停止进行中")
1162
1163 @staticmethod
1164 def get_run_status(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