Skip to content

Commit

Permalink
Merge pull request #4478 from omnivore-app/jacksonh/export-queue
Browse files Browse the repository at this point in the history
Send exports to the export queue
  • Loading branch information
jacksonh authored Nov 1, 2024
2 parents 0bc1135 + 0b6e5d1 commit fc38248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/api/src/utils/createTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/bull-queue-admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand All @@ -72,6 +75,7 @@ const run = async () => {
createBullBoard({
queues: [
new BullMQAdapter(backendQueue),
new BullMQAdapter(exportQueue),
new BullMQAdapter(contentFetchQueue),
],
serverAdapter,
Expand Down

0 comments on commit fc38248

Please sign in to comment.