(#7) - set changes feed limit default to 0

pull/20/head
Johannes J. Schmidt 11 years ago
parent 9a8f4beb2a
commit 4c413616da

@ -60,8 +60,12 @@ convert_process_timeout = 60000
; have a changes feed open to each of them.
changes_feed_timeout = 60000
; Batch size. This limits the batches the workers will take from the changes feed.
; It basically translates to a limit parameter on the changes feed. Default is 100
limit = 100
; It basically translates to a limit parameter on the changes feed. Default is 0.
; IMPORTANT NOTE: currently you should leave it at 0 unless other feeds than
; `continuous` are supported by couchmagick, because the feed does not stop
; after `limit` changes has been arrived.
; See https://github.com/jo/couchmagick/issues/7
limit = 0
```
Imagemagick Configuration

@ -37,11 +37,11 @@ couchmagick.get({
}
// defaults
config.streams = config.streams || 20;
config.concurrency = config.concurrency || 1;
config.limit = config.limit || 100;
config.changes_feed_timeout = config.changes_feed_timeout || 60000;
config.convert_process_timeout = config.convert_process_timeout || 60000;
config.concurrency = config.concurrency && parseInt(config.concurrency, 10) || 1;
config.streams = config.streams && parseInt(config.streams, 10) || 1;
config.limit = config.limit && parseInt(config.limit, 100) || 0;
config.changes_feed_timeout = config.changes_feed_timeout && parseInt(config.changes_feed_timeout, 10) || 10000;
config.convert_process_timeout = config.convert_process_timeout && parseInt(config.convert_process_timeout, 10) || 60000;
couchmagick.info('using config ' + JSON.stringify(config).replace(/"password":".*?"/, '"password":"***"'));

@ -1,6 +1,6 @@
{
"name": "couchmagick",
"version": "1.8.0",
"version": "1.8.1",
"description": "Run ImageMagicks `convert` on CouchDB documents.",
"main": "index.js",
"preferGlobal": true,

Loading…
Cancel
Save