New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
addBulk with multiple repeating jobs only enqueues one repeating job #488
Comments
Have you tried setting a custom name or jobId for each repeatable job? https://docs.bullmq.io/guide/jobs/repeatable
import { Queue, QueueScheduler } from 'bullmq'
const myQueueScheduler = new QueueScheduler('Paint');
const myQueue = new Queue('Paint');
// Repeat job every 10 seconds but no more than 100 times
await myQueue.add('bird', { color: 'bird' },
{
repeat: {
every: 10000,
limit: 100
},
jobId: "colibri"
});
await myQueue.add('bird', { color: 'bird' },
{
repeat: {
every: 10000,
limit: 100
},
jobId: "pingeon"
}); |
Hey @Stormtv ! Yeah, we've tried adding |
I guess this issue is also related OptimalBits/bull#1731 |
fixed with #544 |
Hello!
First, thank you for this library. 馃弳
Context
I'm initializing a queue with around 1000 repeatable jobs via the
addBulk
interface. AQueueScheduler
for the queue has been instantiated. The jobs are initially enqueued and consumed just fine, but only the first job in the jobs array handed toaddBulk
repeats even though all jobs have the same repeat options.Problem
I expect all jobs I pass to
addBulk
with arepeat
option to repeat as configured.Demo
version 1.16.1
The text was updated successfully, but these errors were encountered: