davidroman0O / moleculer-cron

Moleculer Addons - Cron tasks
MIT License
38 stars 25 forks source link

[Question] Concurrency #5

Closed ghost closed 4 years ago

ghost commented 4 years ago

How does this service work with regard concurrency control? If you have multiple instances of the cron service on a single node, or instances of the cron service running on multiple nodes, won't this duplicate running the job on every instance?

kechkibet commented 4 years ago

I would probably have it run on only a single node and then call a service/event on tick.

davidroman0O commented 4 years ago

@chrismbeckett There is no concurrency control, it's a direct implementation of Node-Cron!

You can do whatever you want with one node that trigger your events.

Have fun!