You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: