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

pull/30409/head
Diego Sampaio 2 years ago
parent c655be17ca
commit deffcb187c
No known key found for this signature in database
GPG Key ID: B71D302EB7F5183C
  1. 8
      .changeset/three-ants-give.md
  2. 1
      packages/cron/src/index.ts

@ -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.

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

Loading…
Cancel
Save