aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts4
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 @@
1import { CronRepeatOptions, EveryRepeatOptions } from 'bull' 1import { RepeatOptions } from 'bullmq'
2import { randomBytes } from 'crypto' 2import { randomBytes } from 'crypto'
3import { invert } from 'lodash' 3import { invert } from 'lodash'
4import { join } from 'path' 4import { 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}
200const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = { 200const 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 },