From 5a921e7b74910414626bfc9672b857e987e3ebed Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Aug 2022 10:42:08 +0200 Subject: Move to bullmq --- server/initializers/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/initializers') 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 @@ -import { CronRepeatOptions, EveryRepeatOptions } from 'bull' +import { RepeatOptions } from 'bullmq' import { randomBytes } from 'crypto' import { invert } from 'lodash' import { join } from 'path' @@ -197,7 +197,7 @@ const JOB_TTL: { [id in JobType]: number } = { 'manage-video-torrent': 1000 * 3600 * 3, // 3 hours 'move-to-object-storage': 1000 * 60 * 60 * 3 // 3 hours } -const REPEAT_JOBS: { [ id in JobType ]?: EveryRepeatOptions | CronRepeatOptions } = { +const REPEAT_JOBS: { [ id in JobType ]?: RepeatOptions } = { 'videos-views-stats': { cron: randomInt(1, 20) + ' * * * *' // Between 1-20 minutes past the hour }, -- cgit v1.2.3