From 1ac2bf6cecd76371d1eebb0c80b9560c84250dde Mon Sep 17 00:00:00 2001 From: Thuan Nguyen Date: Sat, 3 Feb 2018 04:37:45 -0800 Subject: [PATCH] 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) --- visualdl/server/visualDL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualdl/server/visualDL b/visualdl/server/visualDL index 5d132d62..146f654a 100644 --- a/visualdl/server/visualDL +++ b/visualdl/server/visualDL @@ -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) -- GitLab