mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #4472 from omnivore-app/jacksonh/export-backoff
Add exponential backoff for the export task
This commit is contained in:
commit
ccc013fcb6
1 changed files with 5 additions and 1 deletions
|
|
@ -1087,7 +1087,11 @@ export const queueExportJob = async (userId: string, exportId: string) => {
|
|||
removeOnComplete: true,
|
||||
removeOnFail: true,
|
||||
priority: getJobPriority(EXPORT_JOB_NAME),
|
||||
attempts: 1,
|
||||
attempts: 3,
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
delay: 60_000,
|
||||
},
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue