Commit b4997121 authored by 赵凯's avatar 赵凯 💬

执行异常时,抛出异常

parent b2b5577d
......@@ -79,7 +79,8 @@ def tasksPatch(taskid):
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print("任务开始执行...")
if response['code'] == -1:
print(response['msg'])
# 集群部署任务
......
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