Schedule cron job every midnight for every timezone with Meteor

时间:2016-08-31 17:07:13

标签: meteor cron timezone

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!

1 个答案:

答案 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.