Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VDL slow when user sets incorrect log directory #249

Merged
merged 3 commits into from
Feb 3, 2018

Conversation

cs2be
Copy link
Collaborator

@cs2be cs2be commented Feb 2, 2018

This fix resolves #243

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.

…all 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.
@nickyfantasy
Copy link
Contributor

LGTM

@daming-lu daming-lu merged commit 1ac2bf6 into PaddlePaddle:develop Feb 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

visualDL server is slow when logdir is not set correctly
3 participants