Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
npm Bull job execution become random instead FIFO

In one of my project i'm using NPM Bull.

Here is example.

const queue = new Queue(`job@@prepare-tasks`);  
const MAX_TASKS_FETCH = 100

const chunkCounts = Math.ceil(tasksJob.itemCounts / MAX_TASKS_FETCH);
    
for(let i = 0; i < chunkCounts; i++) {
  const tasksJobConfig: ITasksJob = clone(tasksJob);
  tasksJobConfig.offset = i * MAX_TASKS_FETCH;
  tasksJobConfig.limit = MAX_TASKS_FETCH;
  tasksJobConfig.isLast = chunkCounts === i + 1;
  queue.add(tasksJobConfig);
}

when I use special character @@ in the name ofn Queue as mentioned the above example. the execution of job is become random and when I remove the special character @@ then the job execute FIFO. as far they mentioned in the documentation by default the execution of job is FIFO . i debugged it but couldnt find out the reason.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!