Allocate One Process for CRON job node.js -


i have done clustering in node.js application. have cron job service in application started when pass srv_type=cron environment variable app.js. question is

i want 1 process execute cron job. code shared on gist github

there many ways implement this. run separate instance cron jobs. run cron jobs on master.

i wrote small module node, cronivo, uses laterjs , redis allow cron job executed once in cluster or multi process. first available instance execute job. of instances may execute job, one.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -