From 9ac016127df3bf3def420fe8b63d118f16b61eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Mon, 17 Oct 2022 12:13:35 +0200 Subject: [PATCH] Merge pull request #9967 from overleaf/jpa-web-scripts-increase-timeouts [web] scripts: increase mongo query timeouts by default (30s -> 5min) GitOrigin-RevId: bdd1a504799ac1d42c52c3966b1072f721398e12 --- services/web/scripts/check_institution_users.js | 1 + services/web/scripts/check_saml_emails.js | 1 + services/web/scripts/sso_id_migration_check.js | 1 + services/web/scripts/sso_id_remove_not_migrated.js | 1 + 4 files changed, 4 insertions(+) diff --git a/services/web/scripts/check_institution_users.js b/services/web/scripts/check_institution_users.js index 44451f2eb0..8c121f1cfc 100644 --- a/services/web/scripts/check_institution_users.js +++ b/services/web/scripts/check_institution_users.js @@ -1,3 +1,4 @@ +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 diff --git a/services/web/scripts/check_saml_emails.js b/services/web/scripts/check_saml_emails.js index 481a3c1f0a..6146b8af9c 100644 --- a/services/web/scripts/check_saml_emails.js +++ b/services/web/scripts/check_saml_emails.js @@ -1,3 +1,4 @@ +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 diff --git a/services/web/scripts/sso_id_migration_check.js b/services/web/scripts/sso_id_migration_check.js index f0ab47e8ea..a8ed8c1890 100644 --- a/services/web/scripts/sso_id_migration_check.js +++ b/services/web/scripts/sso_id_migration_check.js @@ -1,3 +1,4 @@ +process.env.MONGO_SOCKET_TIMEOUT = '300000' process.env.MONGO_CONNECTION_STRING = process.env.READ_ONLY_MONGO_CONNECTION_STRING diff --git a/services/web/scripts/sso_id_remove_not_migrated.js b/services/web/scripts/sso_id_remove_not_migrated.js index f6924c8336..031728fa8f 100644 --- a/services/web/scripts/sso_id_remove_not_migrated.js +++ b/services/web/scripts/sso_id_remove_not_migrated.js @@ -1,3 +1,4 @@ +process.env.MONGO_SOCKET_TIMEOUT = '300000' const { waitForDb } = require('../app/src/infrastructure/mongodb') const SAMLUserIdMigrationHandler = require('../modules/overleaf-integration/app/src/SAML/SAMLUserIdMigrationHandler')