mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
retry export-item job if fails
This commit is contained in:
parent
e33cf465fe
commit
08e5caddc2
1 changed files with 5 additions and 1 deletions
|
|
@ -781,8 +781,12 @@ export const enqueueExportItem = async (jobData: ExportItemJobData) => {
|
|||
}
|
||||
|
||||
return queue.add(EXPORT_ITEM_JOB_NAME, jobData, {
|
||||
attempts: 1,
|
||||
attempts: 3,
|
||||
priority: getJobPriority(EXPORT_ITEM_JOB_NAME),
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
delay: 10000, // 10 seconds
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue