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

Fix multiprocess reader exception test timeout #32747

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented May 6, 2021

PR types

Bug fixes

PR changes

Others

Describe

Fix multiprocess reader exception test timeout

multiprocessing.Queue在使用get的时候,如果没设置超时,会hang住停等,而 multiprocessing 本身也不是一个很稳定的模块,在偶然情况下,会出现get拿不到数据停等导致单测超时的情况,这里加try catch处理一下,超时时间采用和DataLoader.from_generator相等的时间,60s

顺便也完善了一下报错信息

@paddle-bot-old
Copy link

paddle-bot-old bot commented May 6, 2021

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@chenwhql chenwhql merged commit db5eac2 into PaddlePaddle:develop May 7, 2021
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.

2 participants