Skip to content

Commit 1ac2bf6

Browse files
cs2bedaming-lu
authored andcommitted
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)
1 parent f58b45e commit 1ac2bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualdl/server/visualDL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,4 @@ if __name__ == '__main__':
235235
os.mkdir(image_dir)
236236
graph_image_path = vdl_graph.draw_graph(args.model_pb, image_dir)
237237

238-
app.run(debug=False, host=args.host, port=args.port)
238+
app.run(debug=False, host=args.host, port=args.port, threaded=True)

0 commit comments

Comments
 (0)