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

137
Views
Obtenga la posición de iteración en trabajos repetibles en bulljs

Me gustaría realizar algunas acciones en una determinada posición dentro de la devolución de llamada de trabajo repetible, por ejemplo

 const Bull = require('bull'); const queue = new Bull('payment'); // should repeat this task every 5 minutes , 24 times queue.add('trackPayment' , anyData , { repeat : { every : 300000, limit : 24, } }); queue.process('trackPayment' , async (data) => { // this job have a limit of 24 iterations // would like to do some action in the iteration #24 /* if (data.iteration == 24) doAction(); */ })
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

queue.process("handle", function (data) { console.log(data.opts.repeat.count) });
about 4 years ago · Juan Pablo Isaza Report
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!