Skip to content

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

3 participants