Answer the question
In order to leave comments, you need to log in
How to call a script every 30 minutes?
The script should be called every 30 minutes, check the data through the API of another site and check it against the data in MongoDB. If there is a difference, the script should send an email. Question: is it rational to use node-schedule in this case?
Answer the question
In order to leave comments, you need to log in
You misspelled "no s e-schedule".
There is node-cron, I would prefer it for this task.
If your script is written in node.js, then using node-cron is still somehow justified, and if not, then it’s better not to.
I would use regular cron, fortunately, almost all Linux machines have it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question