How to set `maxIdleTimeMS` in MongoEngine to fix `CursorNotFound: Cursor not found` error
Environment
- MongoEngine version: [0.27.0] (fill in your actual version)
- Python version: [3.9.10]
- MongoDB Server version: [5.0.15]
Problem
In my project, I'm using MongoEngine to interact with MongoDB. Recently, I frequently encounter this error in the logs:
pymongo.errors.CursorNotFound: Cursor not found