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