Add exponential backoff for the export task

This commit is contained in:
Jackson Harper
2024-10-31 15:26:13 +08:00
parent 421c4290dc
commit a89234e356

View File

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