Skip to content

Commit

Permalink
Merge pull request #4472 from omnivore-app/jacksonh/export-backoff
Browse files Browse the repository at this point in the history
Add exponential backoff for the export task
  • Loading branch information
jacksonh authored Oct 31, 2024
2 parents 2ad35ad + a89234e commit ccc013f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/api/src/utils/createTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
)
}
Expand Down

0 comments on commit ccc013f

Please sign in to comment.