mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
use a separate queue for thumbnailer
This commit is contained in:
parent
49185027ee
commit
1a48ad03e4
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,9 @@ const createHttpTaskWithToken = async ({
|
|||
}
|
||||
|
||||
// Construct the fully qualified queue name.
|
||||
priority === 'low' && (queue = `${queue}-low`)
|
||||
if (priority === 'low') {
|
||||
queue = `${queue}-low`
|
||||
}
|
||||
|
||||
const parent = client.queuePath(project, location, queue)
|
||||
// Convert message to buffer.
|
||||
|
|
@ -534,6 +536,7 @@ export const enqueueThumbnailTask = async (
|
|||
payload,
|
||||
taskHandlerUrl: env.queue.thumbnailTaskHandlerUrl,
|
||||
requestHeaders: headers,
|
||||
queue: 'omnivore-thumbnail-queue',
|
||||
})
|
||||
|
||||
if (!createdTasks || !createdTasks[0].name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue