Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda