diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-08 10:42:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:18:07 +0200 |
commit | 5a921e7b74910414626bfc9672b857e987e3ebed (patch) | |
tree | f627e2ccc11c55bcba9e630951e72c5f94864c12 /server/initializers | |
parent | 5e2afe4290103bf0d54ae7b3e62781f2a00487c9 (diff) | |
download | PeerTube-5a921e7b74910414626bfc9672b857e987e3ebed.tar.gz PeerTube-5a921e7b74910414626bfc9672b857e987e3ebed.tar.zst PeerTube-5a921e7b74910414626bfc9672b857e987e3ebed.zip |
Move to bullmq
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 8165a289d..db43c59be 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { CronRepeatOptions, EveryRepeatOptions } from 'bull' | 1 | import { RepeatOptions } from 'bullmq' |
2 | import { randomBytes } from 'crypto' | 2 | import { randomBytes } from 'crypto' |
3 | import { invert } from 'lodash' | 3 | import { invert } from 'lodash' |
4 | import { join } from 'path' | 4 | import { join } from 'path' |
@@ -197,7 +197,7 @@ const JOB_TTL: { [id in JobType]: number } = { | |||
197 | 'manage-video-torrent': 1000 * 3600 * 3, // 3 hours | 197 | 'manage-video-torrent': 1000 * 3600 * 3, // 3 hours |
198 | 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours | 198 | 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours |
199 | } | 199 | } |
200 | const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = { | 200 | const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = { |
201 | 'videos-views-stats': { | 201 | 'videos-views-stats': { |
202 | cron: randomInt(1, 20) + ' * * * *' // Between 1-20 minutes past the hour | 202 | cron: randomInt(1, 20) + ' * * * *' // Between 1-20 minutes past the hour |
203 | }, | 203 | }, |