Open jnm opened 7 years ago
Per https://www.flowdock.com/app/kobotoolbox/servers/threads/-77U0wrtL4G_Qp0yoHMLHCbxIsy, it seems that settings.MONGO_DB never recovers if the connection to Mongo dies. The app interpreter must be manually restarted for Mongo queries to work again.
settings.MONGO_DB
Test that this is true, and make settings.MONGO_DB resilient if so (use a wrapper that tries to restart the connection if it's dead?).
I think my original hypothesis is wrong, but there's hope: http://blog.fejes.ca/?p=2496 https://jira.mongodb.org/browse/PYTHON-961
Per https://www.flowdock.com/app/kobotoolbox/servers/threads/-77U0wrtL4G_Qp0yoHMLHCbxIsy, it seems that
settings.MONGO_DB
never recovers if the connection to Mongo dies. The app interpreter must be manually restarted for Mongo queries to work again.Test that this is true, and make
settings.MONGO_DB
resilient if so (use a wrapper that tries to restart the connection if it's dead?).