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.lua
should be renamed toremoveJob-9.lua
and lacks ZREM for 'priority' and 'id' keys. - File
queue.js
lacks 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