Merge pull request #4478 from omnivore-app/jacksonh/export-queue
Send exports to the export queue
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user