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

Should I set reuse=False when pymongo's fork unsafety is concerned? #37

Open
tarjintor opened this issue Mar 20, 2018 · 0 comments
Open

Comments

@tarjintor
Copy link

I use log4mongo with celery, celery is in prefork model.
Then every process use the same MongoHandler,since I import it bofore fork happened.
if I don't set reuse=False, there is a warning from pymongo for there are multil processes share the same mongo client, as https://api.mongodb.com/python/current/faq.html says,it's not fork safe.
So, should I set reuse=False when prefork is used?

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

1 participant