code: function createBatchJobs(){
                  var promises = [];
  
                  for(var i=0;i<squadSize && dataCopy.length > 0;i++){
                      var item = dataCopy.shift();
                      promises.push(worker(item));
                  }
                  return promises;
              }
docs: this will create a batch of up to squadSize jobs