Steps to reproduce the bug
- run index.js to add some jobs in test queue.
- run worker.js to fail all jobs in queue, and stop it :).
- run index.js to add some jobs in test queue.
- run pause.js to pause queue.
- run retry.js to retry jobs (expected send failed jobs to paused status, jobs go to waiting).
- at this point you have jobs in waiting status, jobs in paused status and queue is in paused status.
- run resume.js to resume the queue (jobs in waiting status stay on redis but they are stucked).