提交 1ac2bf6c 编写于 作者: T Thuan Nguyen 提交者: daminglu

VDL is set to retry an pybinded API call multiple times in case the call fails...

VDL is set to retry an pybinded API call multiple times in case the call fails the first time.  The issue is the method lib.retry will sleep the thread for 2 seconds after an exception.  Since VDL was not running in threaded mode, this causes all request to the server to stop immediately, therefore even requests to get static resource are frozen.  This change enables threaded mode in flask. (#249)
上级 f58b45e6
......@@ -235,4 +235,4 @@ if __name__ == '__main__':
os.mkdir(image_dir)
graph_image_path = vdl_graph.draw_graph(args.model_pb, image_dir)
app.run(debug=False, host=args.host, port=args.port)
app.run(debug=False, host=args.host, port=args.port, threaded=True)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册