Class BpipeTaskScheduler

    • Constructor Detail

      • BpipeTaskScheduler

        public BpipeTaskScheduler()
    • Method Detail

      • getBpipeCommandWrapper

        protected abstract File getBpipeCommandWrapper()
        Get the path to the Bpipe command wrapper.
        Returns:
        the File object with the path to the Bpipe command wrapper
      • submitJob

        public String submitJob​(String jobName,
                                List<String> jobCommand,
                                File jobDirectory,
                                int taskId,
                                int requiredMemory,
                                int requiredProcessors)
                         throws IOException
        Description copied from interface: ClusterTaskScheduler
        Submit a job.
        Parameters:
        jobName - job name
        jobCommand - job command
        jobDirectory - job directory
        taskId - task id
        requiredMemory - required memory
        requiredProcessors - required processors
        Returns:
        a String with the id of the submitted job
        Throws:
        IOException - if an error occurs while submitting job
      • additionalScriptEnvironment

        protected Map<String,​String> additionalScriptEnvironment()
        Define additional environment variable for bpipe scripts.
        Returns:
        a Map with the additional environment variables