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?
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?