fp/services/worker/src/queues/highPriorityQueue.ts
CJ_Clippy 87b054e66f
Some checks failed
ci / test (push) Failing after 4m45s
fp/our CI/CD / build (push) Successful in 58s
restrict playback to logged in visitors
2025-11-19 17:46:35 -08:00

27 lines
522 B
TypeScript

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: {},
},
);