Node Js Express . how to schedule task

2019-06-01 11:26发布

问题:

How can I schedule a job or task to be executed at a certain point in time?

I have crons for tasks that execute recurrently, but let's say I create a calendar event and I want my server to send a notification whenever it is the time of the event.

Also, will this be deleted whenever the server is restarted? Should I reschedule the job on each startup?