import { Queue } from "bullmq"; import { connection } from "../../.config/bullmq.config"; export const highPriorityQueue = new Queue('highPriorityQueue', { connection }); await highPriorityQueue.upsertJobScheduler( 'sync-patreon-recurring-job', { every: 45000 }, { name: 'syncronizePatreon', data: {}, opts: {} }, ) await highPriorityQueue.upsertJobScheduler( 'get-announce-url-details', { every: 1000 * 63 }, { name: 'getAnnounceUrlDetails', data: {}, opts: {}, }, );