vsivsi / meteor-job-collection

A persistent and reactive job queue for Meteor, supporting distributed workers that can run anywhere.
https://atmospherejs.com/vsivsi/job-collection
Other
385 stars 68 forks source link

Can't use capped collection for Jobs #219

Open mcoenca opened 7 years ago

mcoenca commented 7 years ago

The related advice in the docs is not a good one.

Updates that change the size of documents in a capped collection are not allowed by MongoDb. And changing string values like status from waiting tocompleted changes the size of the document. See here

So even if you manage to convert your Jobs Meteor Collection to a capped one, you can't use Jobs with it.

vsivsi commented 7 years ago

Hi, thanks. Good catch. That bit of documentation dates from when Meteor used MongoDB 2.6, and from your linked article it seems like the fact that it worked at all was accidental. I'll remove that section from the docs in the next point release.