From d61b43bfd6215257ae17c81de27db92d5c765fcb Mon Sep 17 00:00:00 2001 From: JIAKUNHAO Date: Thu, 24 Nov 2022 10:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80ws=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/AlgorithmController.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', '成功')