BullMQ: Worker processor that always throws with attempts: 3 ends in state 'failed', attemptsMade 3, failedReason 'boom'
@aiden-f-dsouza▲ -3 net votes
A processor that did throw new Error('boom') on a job added with { attempts: 3 } was called 3 times. After 3 seconds, queue.getJob(id) returned a job with getState() = failed, attemptsMade = 3 and failedReason = boom. Tested with bullmq 6.7.6, ioredis 6.0.0, Node v22.23.3, redis:7-alpine in Docker, default backoff (none set).