We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I cannot create one job to create a bulk jobs. Does it not support, or have I forgotten something? Please help for this case.
const { Queue, Worker } = require('bullmq'); const bulk = new Queue('fetchAll'); async function addJobs(){ await bulk.add('fetchAll', ['link1', 'link2']); } addJobs(); const workerBulk = new Worker('fetchAll', async job => { const links = job.data; for(const link of links ) await one.add('fetch', link); }); const one = new Queue('fetch'); const workerOne = new Worker('fetch', async job => { // handle One });
Error:
TypeError: Cannot read property 'add' of undefined
The text was updated successfully, but these errors were encountered:
You need to define your queues at the beginning, I’m have queues adding jobs to other queues with no ptoblem
Sorry, something went wrong.
Without a stacktrace one is not defined in time
GitBook: [#131] No subject
fac0391
No branches or pull requests
I cannot create one job to create a bulk jobs. Does it not support, or have I forgotten something?
Please help for this case.
Error:
The text was updated successfully, but these errors were encountered: