Bull: Multi server setup with repeatable queues

Created on 18 Jul 2019  路  1Comment  路  Source: OptimalBits/bull

I have 3 application servers:
Screenshot 2019-07-18 23 28 13

Whenever they start they schedule a repeatable job:

  paymentsQueue.process(function(job){
    // Check payments
  });
  // repeat payment job every 60 minute
  paymentsQueue.add(paymentsData, {repeat: {cron: '0 * * * *'}});

Does it mean that payment will happed 3 times in 60 mins, or bull is smart enough to run it once on one of the servers?

question

Most helpful comment

It will run only once in one of the servers.

>All comments

It will run only once in one of the servers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sibelius picture sibelius  路  3Comments

pigaov10 picture pigaov10  路  3Comments

davedbase picture davedbase  路  3Comments

weeco picture weeco  路  3Comments

thelinuxlich picture thelinuxlich  路  3Comments