Merge pull request #4478 from omnivore-app/jacksonh/export-queue

Send exports to the export queue
This commit is contained in:
Jackson Harper
2024-11-02 00:32:43 +08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@ -1075,8 +1075,7 @@ export const enqueueExpireFoldersJob = async () => {
}
export const queueExportJob = async (userId: string, exportId: string) => {
const queue = await getQueue()
// const queue = await getQueue(EXPORT_QUEUE_NAME)
const queue = await getQueue(EXPORT_QUEUE_NAME)
if (!queue) {
return undefined
}

View File

@ -62,6 +62,9 @@ const run = async () => {
const backendQueue = new Queue('omnivore-backend-queue', {
connection: connection,
})
const exportQueue = new Queue('omnivore-export-queue', {
connection: connection,
})
const contentFetchQueue = new Queue('omnivore-content-fetch-queue', {
connection: connection,
})
@ -72,6 +75,7 @@ const run = async () => {
createBullBoard({
queues: [
new BullMQAdapter(backendQueue),
new BullMQAdapter(exportQueue),
new BullMQAdapter(contentFetchQueue),
],
serverAdapter,