toil.batchSystems.registry¶
Attributes¶
Functions¶
|
Adds a batch system to the registry for workflow or plugin-supplied batch systems. |
Get the names of all the available batch systems. |
|
|
Get a batch system class by name. |
Module Contents¶
- toil.batchSystems.registry.logger¶
- toil.batchSystems.registry.add_batch_system_factory(key, class_factory)[source]¶
Adds a batch system to the registry for workflow or plugin-supplied batch systems.
- Parameters:
class_factory (Callable[[], type[toil.batchSystems.abstractBatchSystem.AbstractBatchSystem]]) – A function that returns a batch system class (NOT an instance), which implements
toil.batchSystems.abstractBatchSystem.AbstractBatchSystem.key (str)
- toil.batchSystems.registry.get_batch_systems()[source]¶
Get the names of all the available batch systems.
- Return type:
- toil.batchSystems.registry.get_batch_system(key)[source]¶
Get a batch system class by name.
- Raises:
KeyError if the key is not the name of a batch system, and ImportError if the batch system’s class cannot be loaded.
- Parameters:
key (str)
- Return type:
type[toil.batchSystems.abstractBatchSystem.AbstractBatchSystem]
- toil.batchSystems.registry.DEFAULT_BATCH_SYSTEM = 'single_machine'¶