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

PHP while loop dynamic rowspan -

javascript - image slideshow using canvas HTML5 -

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