Reoccuring Tasks in Meteor

We are trying to automate certain tasks either daily or after a period of time.

What are some common ways this is accomplished? Currently we are using Meteor-synced-cron (https://github.com/percolatestudio/meteor-synced-cron) but this package seems quite out of date and not maintained. I also tried node-schedule but was having some minor issues (https://www.npmjs.com/package/node-schedule).

The reason we started looking into Cron Tasks instead of the built in timers, was due to some tasks at the time being longer than the max timer delay ~21 days (can’t find the source at the moment) and wanting to do exact timed tasks i.e. at midnight execute a script.

Thanks

The msavin:sjobs by @msavin package is pretty nice and might be of interest.

2 Likes