Merge branch 'master' of https://gitea.star-rising.cn/xkrs_manan/RODY
This commit is contained in:
commit
04249ddf0f
@ -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', '成功')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user