toil.batchSystems.local_support
¶
Module Contents¶
Classes¶
Adds a local queue for helper jobs, useful for CWL & others. |
Attributes¶
- toil.batchSystems.local_support.logger¶
- class toil.batchSystems.local_support.BatchSystemLocalSupport(config, maxCores, maxMemory, maxDisk)[source]¶
Bases:
digraph inheritance3d54eee849 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [URL="https://docs.python.org/3/library/abc.html#abc.ABC",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Helper class that provides a standard way to create an ABC using"]; "AbstractBatchSystem" [URL="../abstractBatchSystem/index.html#toil.batchSystems.abstractBatchSystem.AbstractBatchSystem",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract base class to represent the interface the batch system must provide to Toil."]; "ABC" -> "AbstractBatchSystem" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BatchSystemLocalSupport" [URL="#toil.batchSystems.local_support.BatchSystemLocalSupport",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Adds a local queue for helper jobs, useful for CWL & others."]; "BatchSystemSupport" -> "BatchSystemLocalSupport" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BatchSystemSupport" [URL="../abstractBatchSystem/index.html#toil.batchSystems.abstractBatchSystem.BatchSystemSupport",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Partial implementation of AbstractBatchSystem, support methods."]; "AbstractBatchSystem" -> "BatchSystemSupport" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.batchSystems.abstractBatchSystem.BatchSystemSupport
Adds a local queue for helper jobs, useful for CWL & others.
- Parameters:
config (toil.common.Config) –
maxCores (float) –
maxMemory (int) –
maxDisk (int) –
- handleLocalJob(jobDesc)[source]¶
To be called by issueBatchJobs.
Returns the jobID if the jobDesc has been submitted to the local queue, otherwise returns None
- Parameters:
jobDesc (toil.job.JobDescription) –
- Return type:
Optional[int]
- killLocalJobs(jobIDs)[source]¶
Will kill all local jobs that match the provided jobIDs.
To be called by killBatchJobs.
- Parameters:
jobIDs (List[int]) –
- Return type:
None
- getUpdatedLocalJob(maxWait)[source]¶
To be called by getUpdatedBatchJob().
- Parameters:
maxWait (int) –
- Return type:
Optional[toil.batchSystems.abstractBatchSystem.UpdatedBatchJobInfo]