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
Post a Comment