Method that runs automatically every day

Hey guys,

I am implementing a “subscription tracker” on my app that is supposed to check whether a customer has payed its monthly fee and show the status for each month (‘OK’ or ‘Missing’).

However, I don’t know how to create a method that runs automatically to check which customers are due on that day and update the status to ‘Missing’ in case the ‘admin’ user hasn’t marked that customer as payed.

Any ideas? Kind of an interesting challenge, right? Thanks!

I love this package for all of my timed or scheduled stuff:

You could also use a simple Meteor.setInterval if you’re running in one server.

Meteor.setInterval(yourTask, 1000 * 3600); // Once each day