retry export-item job if fails

This commit is contained in:
Hongbo Wu
2024-03-01 15:03:01 +08:00
parent e33cf465fe
commit 08e5caddc2

View File

@ -781,8 +781,12 @@ export const enqueueExportItem = async (jobData: ExportItemJobData) => {
}
return queue.add(EXPORT_ITEM_JOB_NAME, jobData, {
attempts: 1,
attempts: 3,
priority: getJobPriority(EXPORT_ITEM_JOB_NAME),
backoff: {
type: 'exponential',
delay: 10000, // 10 seconds
},
})
}