taskforcesh / bullmq

BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis
https://bullmq.io
MIT License
5.47k stars 357 forks source link

fix(worker): Ensure DelayedError is checked for for Sandboxed Processors #2567

Closed imperfect-circuits closed 1 week ago

imperfect-circuits commented 2 weeks ago

Use of .message rather than .name (introduced in https://github.com/taskforcesh/bullmq/commit/4c4559b3c678313b3727c9781a6d3f963bcfda4e) causes Sandboxed job processes to not correctly check for this error. It results in 'Missing lock for job 2. failed'.

Also created issue for this: https://github.com/taskforcesh/bullmq/issues/2566

fixes #2566