diff options
Diffstat (limited to 'server/initializers/constants.ts')
-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 | }, |