You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just don't understand how you fail a job.
I tried: job.moveToFailed(`${path} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`, this.scanQueue.token)
But it gives me following error: Error: Missing lock for job 4. failed at Function.finishedErrors (/Users/admin/repos/ePaadPortal/backend/node_modules/bullmq/src/classes/scripts.ts:248:16) at Job.moveToFailed (/Users/admin/repos/ePaadPortal/backend/node_modules/bullmq/src/classes/job.ts:479:23) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Help would be appreciated. If this is the wrong place to ask this question I am sorry.
Below you find relevant code
public async registerWorkers(): Promise<void>{
this.scanWorker = new Worker(this.scanQueue.name, async (job:Job) => {
this.scanInDir(job)
})
}
Hello,
I just don't understand how you fail a job.
I tried:
job.moveToFailed(`${path} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`, this.scanQueue.token)
But it gives me following error:
Error: Missing lock for job 4. failed at Function.finishedErrors (/Users/admin/repos/ePaadPortal/backend/node_modules/bullmq/src/classes/scripts.ts:248:16) at Job.moveToFailed (/Users/admin/repos/ePaadPortal/backend/node_modules/bullmq/src/classes/job.ts:479:23) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Help would be appreciated. If this is the wrong place to ask this question I am sorry.
Below you find relevant code
The text was updated successfully, but these errors were encountered: