mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 06:55:22 -05:00
9ac016127d
[web] scripts: increase mongo query timeouts by default (30s -> 5min) GitOrigin-RevId: bdd1a504799ac1d42c52c3966b1072f721398e12
19 lines
617 B
JavaScript
19 lines
617 B
JavaScript
process.env.MONGO_SOCKET_TIMEOUT = '300000'
|
|
// Run all the mongo queries on secondaries
|
|
process.env.MONGO_CONNECTION_STRING =
|
|
process.env.READ_ONLY_MONGO_CONNECTION_STRING
|
|
const SAMLEmailBatchCheck = require('../modules/overleaf-integration/app/src/SAML/SAMLEmailBatchCheck')
|
|
|
|
const startInstitutionId = parseInt(process.argv[2])
|
|
const emitDetailedData = process.argv.includes('--detailed-data')
|
|
|
|
SAMLEmailBatchCheck.promises
|
|
.checkEmails(startInstitutionId, emitDetailedData)
|
|
.then(result => {
|
|
console.table(result)
|
|
process.exit()
|
|
})
|
|
.catch(err => {
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|