diff --git a/core/api/src/servers/exporter.ts b/core/api/src/servers/exporter.ts index 1a8b8142cc..98781e4873 100644 --- a/core/api/src/servers/exporter.ts +++ b/core/api/src/servers/exporter.ts @@ -213,7 +213,12 @@ const main = async () => { setupMongoConnection({ syncIndexes: false, - options: { readPreference: "secondaryPreferred", socketTimeoutMS: 150000 }, + options: { + retryReads: false, // Disable retries to prevent hanging on slow/complex queries + readConcern: { level: "majority" }, // Read from majority-committed data + readPreference: "secondaryPreferred", // Exporter only reads data + socketTimeoutMS: 300000, // 5 mins + }, }) .then(() => main()) .catch((err) => logger.error(err))