阅读背景:

如何使用node-schedule仅在一个实例上运行cron?

来源:互联网 

My question is how to use node-schedule to run a cron only on one instance out of two instances of node server. Currently it is running on both instances but I want it to be executed only on one instance. So How can you make a cluster run a task only once? Thanks in advance.My question is how to use node-schedule to run




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: