mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #4478 from omnivore-app/jacksonh/export-queue
Send exports to the export queue
This commit is contained in:
commit
fc38248450
2 changed files with 5 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue