templateManager.writeEnvironmentScript(getPath("deploy.env"), new EnvironmentContext(taskInfo));
task.getLog().info("Writing a runner script to execute {}", cmd);
templateManager.writeRunnerScript(getPath("runner.sh"), new RunnerContext(cmd, configuration.getTaskAppDirectory(), executorData.getUser().or(configuration.getDefaultRunAsUser()), configuration.getServiceLog(), task.getTaskId(), executorData.getMaxTaskThreads().or(configuration.getMaxTaskThreads())));
List<String> command = Lists.newArrayList();
command.add("bash");
command.add("runner.sh");