toil.batchSystems.local_support

Attributes

logger

Classes

BatchSystemLocalSupport

Adds a local queue for helper jobs, useful for CWL & others.

Module Contents

toil.batchSystems.local_support.logger
class toil.batchSystems.local_support.BatchSystemLocalSupport(config, maxCores, maxMemory, maxDisk)[source]

Bases: toil.batchSystems.abstractBatchSystem.BatchSystemSupport

Adds a local queue for helper jobs, useful for CWL & others.

Parameters:
max_local_jobs
localBatch: toil.batchSystems.singleMachine.SingleMachineBatchSystem
handleLocalJob(command, jobDesc)[source]

To be called by issueBatchJob.

Returns the jobID if the jobDesc has been submitted to the local queue, otherwise returns None

Parameters:
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

getIssuedLocalJobIDs()[source]

To be called by getIssuedBatchJobIDs.

Return type:

List[int]

getRunningLocalJobIDs()[source]

To be called by getRunningBatchJobIDs().

Return type:

Dict[int, float]

getUpdatedLocalJob(maxWait)[source]

To be called by getUpdatedBatchJob().

Parameters:

maxWait (int)

Return type:

Optional[toil.batchSystems.abstractBatchSystem.UpdatedBatchJobInfo]

getNextJobID()[source]

Must be used to get job IDs so that the local and batch jobs do not conflict.

Return type:

int

shutdownLocal()[source]

To be called from shutdown().

Return type:

None