Merge pull request #4472 from omnivore-app/jacksonh/export-backoff

Add exponential backoff for the export task
This commit is contained in:
Jackson Harper
2024-10-31 19:53:56 +08:00
committed by GitHub

View File

@ -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,
},
} }
) )
} }