move shell generation into slice (new) post-processor which means it can be distributed and co-located with slicing in minion

This commit is contained in:
Stewart Allen 2021-06-23 22:31:27 -04:00
commit e2ef4ff7e2
10 changed files with 246 additions and 156 deletions

View file

@ -29,15 +29,15 @@
return settings;
}
function getRangeParameters(settings, index) {
function getRangeParameters(process, index) {
if (index === undefined || index === null || index < 0) {
return settings.process;
return process;
}
let ranges = settings.process.ranges;
let ranges = process.ranges;
if (!(ranges && ranges.length)) {
return settings.process;
return process;
}
let params = Object.clone(settings.process);
let params = Object.clone(process);
for (let range of ranges) {
if (index >= range.lo && index <= range.hi) {
for (let [key,value] of Object.entries(range.fields)) {