mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add retries for pdf handler job
This commit is contained in:
parent
9e6b5d2dcf
commit
f0103d4da5
1 changed files with 8 additions and 1 deletions
|
|
@ -17,5 +17,12 @@ type UpdatePageJobData = {
|
|||
}
|
||||
|
||||
export const queueUpdatePageJob = async (data: UpdatePageJobData) => {
|
||||
return queue.add(JOB_NAME, data)
|
||||
return queue.add(JOB_NAME, data, {
|
||||
priority: 5,
|
||||
attempts: 3,
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
delay: 1000,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue