Repeatable jobs duplication
Created by: cloudever
Description
The number of repeatable jobs increases with each reboot of the server. The processor processes also those that were before the restart and so number of processings increases with each restart. I understand that on server startup the new jobs created by the server but all names keeps unique.
How to avoid that or it's a bug?
Minimal, Working Test code to reproduce the issue.
I had a job create so
queue.add(FETCH_QUOTES_QUEUE, data, {
repeat: {
every: 2000
},
})
and the corresponding processor
queue.process(FETCH_QUOTES_QUEUE, (job, done) => {
....
done()
})
Bull version
3.4.3
Additional information
In the beginning I didn't used any contants for job and processor names but issue was.