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

android - How to read a column value in parse.com without accessing an object or a pointer -

ios - NSDateFormatter: error in converting date -

timer - Java TimerTask cancel -