Skip to content

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.

1 participant