global value init
This commit is contained in:
parent
02de7a5ae2
commit
653655efc8
@ -46,7 +46,7 @@ def start_train_algorithm():
|
|||||||
param = request.args.get('param')
|
param = request.args.get('param')
|
||||||
id = request.args.get('id')
|
id = request.args.get('id')
|
||||||
t = Thread(target=func, args=(param, id))
|
t = Thread(target=func, args=(param, id))
|
||||||
set_value(key=id, value=True)
|
set_value(key=id, value=False)
|
||||||
t.start()
|
t.start()
|
||||||
return output_wrapped(0, 'success', '成功')
|
return output_wrapped(0, 'success', '成功')
|
||||||
|
|
||||||
@ -260,10 +260,10 @@ def change_ifKillDIct():
|
|||||||
"""
|
"""
|
||||||
id = request.args.get('id')
|
id = request.args.get('id')
|
||||||
type = request.args.get('type')
|
type = request.args.get('type')
|
||||||
global ifKillDict
|
set_value(id, type)
|
||||||
ifKillDict[id] = False
|
|
||||||
return output_wrapped(0, 'success')
|
return output_wrapped(0, 'success')
|
||||||
|
|
||||||
|
|
||||||
# @start_train_algorithm()
|
# @start_train_algorithm()
|
||||||
# def start(param: str):
|
# def start(param: str):
|
||||||
# """
|
# """
|
||||||
|
Loading…
Reference in New Issue
Block a user