From c73f87aeca8c8aa6739afc6e9c4c767779dd1d99 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Thu, 14 Sep 2023 23:08:57 -0300 Subject: [PATCH 1/3] fix: increate cron job check delay to 1 min --- packages/cron/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cron/src/index.ts b/packages/cron/src/index.ts index 62bc0512bac6..dcd4dc5745d8 100644 --- a/packages/cron/src/index.ts +++ b/packages/cron/src/index.ts @@ -64,6 +64,7 @@ export class AgendaCronJobs { mongo, db: { collection: 'rocketchat_cron' }, defaultConcurrency: 1, + processEvery: '1 minute', }); await this.scheduler.start(); From 232953aa1b37cc98e6e91fa1c2b85e8db1a1d11b Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Mon, 18 Sep 2023 11:36:21 -0300 Subject: [PATCH 2/3] Create three-ants-give.md --- .changeset/three-ants-give.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/three-ants-give.md diff --git a/.changeset/three-ants-give.md b/.changeset/three-ants-give.md new file mode 100644 index 000000000000..386c6b6ea9c9 --- /dev/null +++ b/.changeset/three-ants-give.md @@ -0,0 +1,8 @@ +--- +"@rocket.chat/cron": patch +"@rocket.chat/meteor": patch +--- + +Increase cron job check delay to 1 min. + +This reduces MongoDB requests introduced on 6.3. From 4286f42aff208b64ae19a80671ce95772a56bc43 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Mon, 18 Sep 2023 11:37:36 -0300 Subject: [PATCH 3/3] update change set --- .changeset/three-ants-give.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/three-ants-give.md b/.changeset/three-ants-give.md index 386c6b6ea9c9..4d33fad05f39 100644 --- a/.changeset/three-ants-give.md +++ b/.changeset/three-ants-give.md @@ -3,6 +3,6 @@ "@rocket.chat/meteor": patch --- -Increase cron job check delay to 1 min. +Increase cron job check delay to 1 min from 5s. This reduces MongoDB requests introduced on 6.3.