Skip to content

Commit

Permalink
fix: increase cron job check delay to 1 min (#30402)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Sep 18, 2023
1 parent c655be1 commit deffcb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/three-ants-give.md
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions packages/cron/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class AgendaCronJobs {
mongo,
db: { collection: 'rocketchat_cron' },
defaultConcurrency: 1,
processEvery: '1 minute',
});
await this.scheduler.start();

Expand Down

0 comments on commit deffcb1

Please sign in to comment.