Allocate One Process for CRON job node.js
<p>I have done clustering in my Node.js application. I have a cron job service in my application which is started when I pass SRV_TYPE=cron environment variable to the app.js. The question is</p>

<p>I want that only one process will execute my cron job. 
This is code <a href="https://gist.github.com/anonymous/2f70a3241e29978514c59b6d8a9bf18d" rel="nofollow">shared on gist github</a></p>