bullmq icon indicating copy to clipboard operation
bullmq copied to clipboard

[Bug]: Repeatable job is not fired off immediately after it's removed and added back

Open raymondfeng opened this issue 1 year ago • 3 comments

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.

  1. Create a queue and add a repeatable job with immediately=true option
  2. Create worker for the queue to handle the repeatable job
  3. Remove the job or drain the queue
  4. Add the repeatable job back to the queue with immediately=true option

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

raymondfeng avatar Jan 30 '24 19:01 raymondfeng

Could you please produce the actual source code that reproduces the issue?

manast avatar Jan 30 '24 20:01 manast

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.

fabianboerner avatar Sep 03 '24 15:09 fabianboerner