What all libraries for NodeJS provide for constant scheduling and cron jobs

From what I read, provide this feature only Agenda , Node-crontab and schedule road . It would be appreciated if you provide a short description of the mechanism that this library uses to permanently store tasks.

I need to send email by reading the mail options from MongoDB and want my nodeJS application to be planned somehow and be in sych with them, even if nodeJS is temporarily stopped.

+4
source share
1 answer

For MySQL you can try with nodejs-persistable-scheduler

In other cases, you need to create your own solution. For example, I created a collection / table to store state and schedule rules. Then, if the service crashes or restarts, I can get all the schedules from the database and restart them again from app.listen event.

0
source

All Articles