You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've groups which has 'n' users. There can be multiple groups.. now for each Group I'm creating a JobQueue with a dynamic delay for every run, lets call this frequency.
const GroupJobs = JobCollection('groups');
job = new Job(GroupJobs, 'jobGroup', data);
GroupsJobs.processJobs('jobGroup', ...);
Everything works fine. Now I need to change the frequency of a specific (end-user defined) ... how can I do that? #157 - this tells me how to do, but how do I get the Job object??
The text was updated successfully, but these errors were encountered:
Hi, a JobCollection is backed by a regular Meteor collection. So you can do a jc.find() query and return one or more job documents of interest. Then there are a couple of ways to turn those into Job objects. One is to individually call new Job(jc, doc) on each one. The other way is to just return an _id or array of _id values, and then either use jc.getJob() or jc.getJobs() to return job documents.
Thanks for this wonderful package.
I've groups which has 'n' users. There can be multiple groups.. now for each Group I'm creating a JobQueue with a dynamic delay for every run, lets call this frequency.
const GroupJobs = JobCollection('groups');
job = new Job(GroupJobs, 'jobGroup', data);
GroupsJobs.processJobs('jobGroup', ...);
Everything works fine. Now I need to change the frequency of a specific (end-user defined) ... how can I do that?
#157 - this tells me how to do, but how do I get the Job object??
The text was updated successfully, but these errors were encountered: