Package com.hubspot.singularity.executor.models

Examples of com.hubspot.singularity.executor.models.EnvironmentContext


  }

  private ProcessBuilder buildProcessBuilder(TaskInfo taskInfo, ExecutorData executorData) {
    final String cmd = getCommand(executorData);

    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())));
View Full Code Here

TOP

Related Classes of com.hubspot.singularity.executor.models.EnvironmentContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.