Spandan Joshi
Spandan Joshi

Reputation: 902

node-cron tasks terminated after restart the server

The project in which I am working completely dependent on cronjobs functionality like firebase push notification 1 day before the subscription expires. the problem is when I restart the server all cron jobs are terminated. how can I solve this

Upvotes: 0

Views: 251

Answers (2)

Spandan Joshi
Spandan Joshi

Reputation: 902

Use Agenda.js & Agendash . Npm install agenda agendash Agenda save your jobs in database & triggered even you reboot your server . Agendash give you a dashboard for monitor or test your schedule jobs

Upvotes: 0

Arttu Pakarinen
Arttu Pakarinen

Reputation: 111

Save your cronjobs to database, and use only values in database or defaults?

Upvotes: 1

Related Questions