while (excessWorkload > 0) {
final int numExecutors = Math.min(excessWorkload, maxExecutors);
excessWorkload -= numExecutors;
LOGGER.info("Provisioning Jenkins Slave on Mesos with " + numExecutors +
" executors. Remaining excess workload: " + excessWorkload + " executors)");
list.add(new PlannedNode(this.getDisplayName(), Computer.threadPoolForRemoting
.submit(new Callable<Node>() {
public Node call() throws Exception {
MesosSlave s = doProvision(numExecutors);
Hudson.getInstance().addNode(s);
return s;