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(); */ })queue.process("handle", function (data) { console.log(data.opts.repeat.count) });