mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-16 17:09:07 +00:00
Merge pull request #15588 from overleaf/em-migrations-mongo-timeout
Disable socket timeout when running Mongo migrations GitOrigin-RevId: 4fd1b9d4b4756951fce3918a01e1c8803538153d
This commit is contained in:
parent
348bdf7907
commit
08304b5947
2 changed files with 6 additions and 2 deletions
|
@ -116,7 +116,11 @@ module.exports = {
|
|||
maxPoolSize: parseInt(process.env.MONGO_POOL_SIZE, 10) || 100,
|
||||
serverSelectionTimeoutMS:
|
||||
parseInt(process.env.MONGO_SERVER_SELECTION_TIMEOUT, 10) || 60000,
|
||||
socketTimeoutMS: parseInt(process.env.MONGO_SOCKET_TIMEOUT, 10) || 60000,
|
||||
// Setting socketTimeoutMS to 0 means no timeout
|
||||
socketTimeoutMS: parseInt(
|
||||
process.env.MONGO_SOCKET_TIMEOUT ?? '60000',
|
||||
10
|
||||
),
|
||||
},
|
||||
url:
|
||||
process.env.MONGO_CONNECTION_STRING ||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"lint:fix": "eslint --fix --ext .js,.jsx,.mjs,.ts,.tsx .",
|
||||
"type-check": "tsc --noEmit",
|
||||
"extract-translations": "i18next-scanner",
|
||||
"migrations": "east",
|
||||
"migrations": "MONGO_SOCKET_TIMEOUT=0 east",
|
||||
"convert-themes": "node frontend/js/features/source-editor/themes/scripts/convert.js",
|
||||
"cypress:open-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress open --component",
|
||||
"cypress:run-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress run --component --browser chrome",
|
||||
|
|
Loading…
Add table
Reference in a new issue