fix: increase cron job check delay to 1 min (#30402)

This commit is contained in:
Diego Sampaio 2023-09-18 11:37:51 -03:00
parent d9a150000d
commit 61a106fbf2
No known key found for this signature in database
GPG Key ID: B71D302EB7F5183C
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
"@rocket.chat/cron": patch
"@rocket.chat/meteor": patch
---
Increase cron job check delay to 1 min from 5s.
This reduces MongoDB requests introduced on 6.3.

View File

@ -64,6 +64,7 @@ export class AgendaCronJobs {
mongo,
db: { collection: 'rocketchat_cron' },
defaultConcurrency: 1,
processEvery: '1 minute',
});
await this.scheduler.start();