I need to run a cron job every midnight for every timezone. What is is the best way to accomplish this with Meteor?
There are some packages that deal with cron jobs + timezone, but not for every timezone dynamically.
For example: In this CRM, every day it will set specific actions for users for the next day, but i can only set the tasks when the work day is over, otherwise it will break things.
Thank you!
答案 0 :(得分:0)
vsivsi:meteor-job-collection is a Meteor package which helps running jobs and schedule them. It provides hook for Later.js which has an awesome API to schedule tasks.
Figure out the logic how you want your jobs to run and you can implement using them.