(get)
| 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): |
nothing calls this directly
no test coverage detected