fix memory leak from axios error

This commit is contained in:
Hongbo Wu
2024-04-24 15:55:54 +08:00
parent 6db838c4fe
commit 824b256d20
2 changed files with 32 additions and 12 deletions

View File

@ -59,7 +59,7 @@ const getAttempts = (job: SavePageJob): number => {
const getOpts = (job: SavePageJob): BulkJobOptions => {
return {
jobId: `save-page_${job.userId}_${job.data.finalUrl}`, // make sure we don't have duplicate jobs
jobId: `${JOB_NAME}_${job.userId}_${job.data.finalUrl}`, // make sure we don't have duplicate jobs
removeOnComplete: true,
removeOnFail: true,
attempts: getAttempts(job),