I am developing an application where I need to run some server-side tasks at regular intervals. These tasks basically call existing methods on the server side, and also depends on user preferences.
I tried so far with basic Meteor.setInterval() functions and also cron packages (like easycron), but I always run into problems. For example, when using cron jobs, and calling a method from there, I always run into the same problem:
Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.
Anybody knows how to solve this, and call methods from cron jobs just like you would from the client side?