mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Backoff for save page
This commit is contained in:
parent
dde80091b4
commit
9e6b5d2dcf
1 changed files with 5 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ const getAttempts = (job: savePageJob): number => {
|
|||
return 1
|
||||
}
|
||||
|
||||
return 2
|
||||
return 3
|
||||
}
|
||||
|
||||
const getOpts = (job: savePageJob): BulkJobOptions => {
|
||||
|
|
@ -48,6 +48,10 @@ const getOpts = (job: savePageJob): BulkJobOptions => {
|
|||
// removeOnFail: true,
|
||||
attempts: getAttempts(job),
|
||||
priority: getPriority(job),
|
||||
backoff: {
|
||||
type: 'exponential',
|
||||
delay: 1000,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue