Repeated job using "every" starts at the wrong time
Created by: ajwootto
Description
Hi, I'm adding a job to Bull like this:
bull.add(data, {
delay: 600000,
repeat: {
every: 600000,
jobId: "some_string"
}
}
Basically the job should happen for the first time 10 minutes from the time this is called, and then repeat every 10 minutes thereafter.
If I call this at, say, 4:03 PM, the job is first processed at 4:10 PM and repeats every 10 minutes from that point on.
It seems that the "every" parameter is just ignoring the relative delay and just having the job repeat on the 10 minute marks of the hour. Is this expected behaviour or should it actually be happening at 4:13 PM, 4:23 PM and so on?