Fix errors when removing jobs in priority queues
Created by: cbjuan
Description
Removing jobs and cleaning queues when using priority queues break the queue order since some internal queues are not removed when needed.
Minimal, Working Test code to reproduce the issue.
- File
removeJob-7.luashould be renamed toremoveJob-9.luaand lacks ZREM for 'priority' and 'id' keys. - File
queue.jslacks of keys 'priority' and 'id' inmulti.del(this.toKey())statement - File
scripts.js. Inremove()method must be included the keys 'priority' and 'id' to the map
Bull version
3.4.2
Additional information
Opening a new PR to solve these issues