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

线程block,无法退出 #496

Open
zchunhai opened this issue Nov 15, 2023 · 0 comments
Open

线程block,无法退出 #496

zchunhai opened this issue Nov 15, 2023 · 0 comments
Assignees

Comments

@zchunhai
Copy link

work_item = work_queue.get(block=True)

这段代码,某些异常情况下会永久block,导致线程无法退出,线程数持续增长。
建议加一个timeout参数,同时捕获Empty exception 。

@zhihuiwan

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

No branches or pull requests

3 participants