Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda