Tuesday, 16 May 2017

node scheduler destroy task on node server crash

I make an application in which i used node server for webServices. my application have feature to book flight & movie ticket & bus ticket & many more..

i need to send reminder message to user for their booking just before 2 hours of user's flight / bus time / movie / etc...

so i use Node-Scheduler it allow you to set this kind of dynamic cron jobs..

i use linux server on rent (i haven't cloud) and use forever module / package.

now what forever do is whenever my node-server crash.. it will restart it automatically.. and if node-server crash then my node-scheduler cron job is destroy scheduler job.

i'm using mySql database. so,...

Is there any solution to solve this issue??



via Robin Sampras

No comments:

Post a Comment