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

pymongo 不导致进程阻塞 #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NoraGithub
Copy link

@NoraGithub NoraGithub commented Nov 25, 2017

PyMongo supports Gevent. Simply call Gevent’s monkey.patch_all() before loading any other module
http://api.mongodb.com/python/current/examples/gevent.html

可能pymongo(未monkey_patch, thread逻辑) 和 项目(monkey_patch, coroutine逻辑) 使用 thread 冲突导致的cannot release un-acquired lock错误。统一即可。
根据反馈 44bbc2d
monkey.patch_all(thread=false) 会导致进程阻塞bug。因此使用mongo兼容方案。

PyMongo supports Gevent. Simply call Gevent’s monkey.patch_all() before loading any other module
http://api.mongodb.com/python/current/examples/gevent.html
@NoraGithub NoraGithub changed the title 使用python3 和 pymongo 不导致进程阻塞 pymongo 不导致进程阻塞 Nov 25, 2017
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.

None yet

1 participant