diff --git a/app/controller/AlgorithmController.py b/app/controller/AlgorithmController.py index ef2a4a6..dcfa92a 100644 --- a/app/controller/AlgorithmController.py +++ b/app/controller/AlgorithmController.py @@ -47,8 +47,8 @@ def start_train_algorithm(): def wrapped_function(): param = request.args.get('param') id = request.args.get('id') - t = Thread(target=func, args=(param, id)) - #t = Process(target=func, args=(param, id), name=id) + # t = Thread(target=func, args=(param, id)) + t = Process(target=func, args=(param, id), name=id) set_value(key=id, value=False) t.start() return output_wrapped(0, 'success', '成功')