文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit d68e5d86 by 李景熙

终止任务

parent 2bf67df7
...@@ -304,6 +304,8 @@ def set_state(task_id, state): ...@@ -304,6 +304,8 @@ def set_state(task_id, state):
t.task_state = 0 t.task_state = 0
else: else:
t.task_state = 1 t.task_state = 1
elif state == 'terminate':
t.task_state = 5
except: except:
return False return False
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment