I\'m wondering, is there is way to implement background taks, maybe with workers pool. Can you show me direction, i\'m thinking about writing package for this?
There is a package based on Cron jobs which can be used to schedule tasks on certain intervals or dates. Here is the package: https://atmosphere.meteor.com/package/cron
And if you happen to look into the source of that package, you'll notice they're simply using:
Meteor.setInterval( ... , delay );
So if you save your tasks in a database, then load them into intervals during startup, then you'll probably be on the right track.