bullmq
bullmq copied to clipboard
[Bug]: Repeatable job is not fired off immediately after it's removed and added back
Version
v4.14.0
Platform
NodeJS
What happened?
Hi, I noticed a strange behavior. We have a repeatable job. If we remove it or drain the queue for delayed jobs and add it back with immediately=true , the workers are not fired off.
How to reproduce.
- Create a queue and add a repeatable job with
immediately=trueoption - Create worker for the queue to handle the repeatable job
- Remove the job or drain the queue
- Add the repeatable job back to the queue with
immediately=trueoption
The worker is not fired off immediately.
Relevant log output
N/A
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Could you please produce the actual source code that reproduces the issue?
For use this issue occured when the original repeated job was still in completed and not completely removed from redis. If you remove the delayed job after the original it will not add another job.