govindrai / LPN-Fitness-App

Helps organizations take charge of their people's well being and promote healthier lifestyles through fitness competitions. Built on Node.js
https://lpnfitness.herokuapp.com/
0 stars 0 forks source link

Cron jobs don't persist #87

Open govindrai opened 5 years ago

govindrai commented 5 years ago

@vildevev During my refactor, I hit the scheduler code. Upon re-reviewing Node Schedule's, the cron-like NPM package we have been using, documentation, here's what I discovered:

Note that Node Schedule is designed for in-process scheduling, i.e. scheduled jobs will only fire as long as your script is running, and the schedule will disappear when execution completes. If you need to schedule jobs that will persist even when your script isn't running, consider using actual cron.

This means that we will actually need to use actual cron.

govindrai commented 5 years ago

Conditions of Satisfaction: