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
register_mongodb builds MongoClient(uri) with PyMongo defaults. serverSelectionTimeoutMS is 30 s, so with MongoDB down every request thread blocks for 30 s and startup hangs. Pool size, app name and TLS options can be set only through MONGO_URI.
Proposal
New db.client_options mapping (str to scalar), passed as MongoClient(**client_options). Keys are PyMongo's own option names; FOCA documents none of its own.
Default serverSelectionTimeoutMS: 5000 and connectTimeoutMS: 5000 when not set.
appname defaults to service_info.id (or the package name).
Options in MONGO_URI win, as in PyMongo; FOCA logs a warning on conflict.
Unknown options fail at MongoClient creation (fail-fast).
Acceptance criteria
Model field, defaults and pass-through covered by tests (100% coverage).
Docs (database configuration page) list the field, the defaults and the URI precedence.
Release notes/migration guide mention the changed default timeout (behaviour change, no API change).
Activity