diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-16 14:10:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-16 14:10:11 +0100 |
commit | 182082f52d8cd94dc068ce39276af8243a00fb7c (patch) | |
tree | 25d6155e7515c23c2ec28fa2b83928ff80930dec /server/initializers | |
parent | e65ef81cf51746616182a822bd6933bf0d16717a (diff) | |
download | PeerTube-182082f52d8cd94dc068ce39276af8243a00fb7c.tar.gz PeerTube-182082f52d8cd94dc068ce39276af8243a00fb7c.tar.zst PeerTube-182082f52d8cd94dc068ce39276af8243a00fb7c.zip |
Update bullmq
Requires redis >= 6.2
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 992c86ed2..4703e20f2 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -212,10 +212,10 @@ const JOB_TTL: { [id in JobType]: number } = { | |||
212 | } | 212 | } |
213 | const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = { | 213 | const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = { |
214 | 'videos-views-stats': { | 214 | 'videos-views-stats': { |
215 | cron: randomInt(1, 20) + ' * * * *' // Between 1-20 minutes past the hour | 215 | pattern: randomInt(1, 20) + ' * * * *' // Between 1-20 minutes past the hour |
216 | }, | 216 | }, |
217 | 'activitypub-cleaner': { | 217 | 'activitypub-cleaner': { |
218 | cron: '30 5 * * ' + randomInt(0, 7) // 1 time per week (random day) at 5:30 AM | 218 | pattern: '30 5 * * ' + randomInt(0, 7) // 1 time per week (random day) at 5:30 AM |
219 | } | 219 | } |
220 | } | 220 | } |
221 | const JOB_PRIORITY = { | 221 | const JOB_PRIORITY = { |