admin管理员组文章数量:1415111
I have a aws API GET call in node js.
http://localhost:3000/amazon/api
I have mentioned necessary functionalities within this call. I want to run this call everyday at 11:00PM using node js. I went through cron and other scheduling
package documents. Bit confusing.
I have a aws API GET call in node js.
http://localhost:3000/amazon/api
I have mentioned necessary functionalities within this call. I want to run this call everyday at 11:00PM using node js. I went through cron and other scheduling
package documents. Bit confusing.
1 Answer
Reset to default 6You can use the node-schedule module to schedule tasks for specific times.
A simple example for 11am everyday might look like:
var schedule = require('node-schedule');
var j = schedule.scheduleJob('* * /11 * * *', function(){
console.log('Run your process here');
});
本文标签: javascriptHow to run a API GET call in node js everyday at 1100pmStack Overflow
版权声明:本文标题:javascript - How to run a API GET call in node js everyday at 11:00pm - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745216417a2648192.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论