Merge pull request #4472 from omnivore-app/jacksonh/export-backoff
Add exponential backoff for the export task
This commit is contained in:
@ -1087,7 +1087,11 @@ export const queueExportJob = async (userId: string, exportId: string) => {
|
|||||||
removeOnComplete: true,
|
removeOnComplete: true,
|
||||||
removeOnFail: true,
|
removeOnFail: true,
|
||||||
priority: getJobPriority(EXPORT_JOB_NAME),
|
priority: getJobPriority(EXPORT_JOB_NAME),
|
||||||
attempts: 1,
|
attempts: 3,
|
||||||
|
backoff: {
|
||||||
|
type: 'exponential',
|
||||||
|
delay: 60_000,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user