|
|
@ -28,6 +28,7 @@ couchmagick.get({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// Batching
|
|
|
|
// Batching
|
|
|
|
|
|
|
|
processes: pkg.name + '.processes',
|
|
|
|
limit: pkg.name + '.limit',
|
|
|
|
limit: pkg.name + '.limit',
|
|
|
|
timeout: pkg.name + '.timeout'
|
|
|
|
timeout: pkg.name + '.timeout'
|
|
|
|
}, function(err, config) {
|
|
|
|
}, function(err, config) {
|
|
|
@ -36,6 +37,7 @@ couchmagick.get({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// defaults
|
|
|
|
// defaults
|
|
|
|
|
|
|
|
config.processes = config.processes || 4;
|
|
|
|
config.timeout = config.timeout || 10000;
|
|
|
|
config.timeout = config.timeout || 10000;
|
|
|
|
config.limit = config.limit || 100;
|
|
|
|
config.limit = config.limit || 100;
|
|
|
|
|
|
|
|
|
|
|
@ -81,7 +83,7 @@ couchmagick.get({
|
|
|
|
return process.exit(0);
|
|
|
|
return process.exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async.eachSeries(dbs, listen, run);
|
|
|
|
async.eachLimit(dbs, config.processes, listen, run);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
run();
|
|
|
|
run();
|
|
|
|