Vaughn Iverson

Results 412 comments of Vaughn Iverson

Hi, good question. The query that looks up the next N jobs of a given type is here: https://github.com/vsivsi/meteor-job-collection/blob/master/src/shared.coffee#L427-L443 Basically the sort order is: - highest `priority` - earliest `retryUntil`...

Hi, I don't know what you mean by "a model info". Are you reporting an issue with the job-collection package or just asking for Meteor programming help? I suggest you...

Hi, I see. A job collection works just like any other collection this respect. So in Meteor generally, if you want to notify a user when a certain document in...

Rate limiting seems like one of those features where a "one size fits all" approach won't be likely to work very well. For this reason I've been hesitant to build...

Probably the easiest way to do this is to also specify a `retry()` on the job that matches the desired repeat frequency. Retry is not as flexible as repeat, but...

Hi, some of this may be obvious, but just so we're on the same page... By "plain object" it means an object that can be serialized to [EJSON](http://docs.meteor.com/#/full/ejson). `Meteor.Error` objects...

Hi, I see what you are saying, and I didn't realize that Meteor supplied an EJSON custom type for Meteor.Error, although it makes sense. However, the "fix" above is too...

If you would like to try bypassing the server side shortcut, you may do so by running: ``` js Job._setDDPApply(Meteor.apply, jc.root); // jc is your jobCollection object ``` I haven't...

This is almost certainly a problem with your code, and not with the job-collection package. Every job must eventually call either `job.done()` or `job.fail()`. If it doesn't then that "zombie"...

You can return a result in`job.done()` that can then be retrieved using the `_id` of the job.