diff --git a/app/controller/AlgorithmController.py b/app/controller/AlgorithmController.py index 0eb3911..176b297 100644 --- a/app/controller/AlgorithmController.py +++ b/app/controller/AlgorithmController.py @@ -18,6 +18,7 @@ from app.utils.RedisMQTool import Task from app.utils.StandardizedOutput import output_wrapped from app.utils.redis_config import redis_client from app.utils.websocket_tool import manager +from app.configs.global_var import set_value import sys from pathlib import Path @@ -45,6 +46,7 @@ def start_train_algorithm(): param = request.args.get('param') id = request.args.get('id') t = Thread(target=func, args=(param, id)) + set_value(key=id, value=True) t.start() return output_wrapped(0, 'success', '成功')