You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When removing a repeatable job using either removeRepeatable or removeRepeatableByKey, it does not emit a removed event on the QueueEvent class.
Here is a small example that can repro the issue.
// Register handler for removedqueueEvents.on('removed',()=>{// No removal event is fired});// Create a repeatable jobqueue.add('someJob',{repeat: {cron: '* * * * *'}});// Remove the repeatable jobqueue.removeRepeatable('someJob',{repeat: {cron: '* * * * *'}});
When looking at the lua script removeRepeatable-2.lua It does not seem like the removed event is being sent to redis. However the removeJob script does.
This seems to be an oversight, and that the removeRepeatable-2.lua should also emit a removed event.
When removing a repeatable job using either
removeRepeatable
orremoveRepeatableByKey
, it does not emit aremoved
event on the QueueEvent class.Here is a small example that can repro the issue.
When looking at the lua script
removeRepeatable-2.lua
It does not seem like theremoved
event is being sent to redis. However theremoveJob
script does.This seems to be an oversight, and that the
removeRepeatable-2.lua
should also emit aremoved
event.https://github.com/OptimalBits/bull/blob/develop/lib/commands/removeRepeatable-2.lua
The text was updated successfully, but these errors were encountered: