M
M
Maksym Blank2017-10-10 05:26:42
JavaScript
Maksym Blank, 2017-10-10 05:26:42

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

4 answer(s)
I
Ivashka, 2017-10-10
Kolbaskin @gee_danko

You misspelled "no s e-schedule".
There is node-cron, I would prefer it for this task.

D
de1m, 2017-10-10
@de1m

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.

V
vitaliy2, 2017-10-15
@vitaliy2

cron is suitable for calling any scripts, including node

A
Alexander Wolf, 2017-10-19
@mannaro

I would use regular cron, fortunately, almost all Linux machines have it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question