toil.batchSystems.registry
¶
Module Contents¶
Functions¶
|
Adds a batch system to the registry for workflow-supplied batch systems. |
Return a snapshot of the plugin registry that can be restored to remove |
|
|
Restore the batch system registry state to a snapshot from |
Attributes¶
- toil.batchSystems.registry.logger¶
- toil.batchSystems.registry.BATCH_SYSTEM_FACTORY_REGISTRY: Dict[str, Callable[[], Type[toil.batchSystems.abstractBatchSystem.AbstractBatchSystem]]]¶
- toil.batchSystems.registry.BATCH_SYSTEMS¶
- toil.batchSystems.registry.DEFAULT_BATCH_SYSTEM = 'single_machine'¶
- toil.batchSystems.registry.addBatchSystemFactory(key, batchSystemFactory)[source]¶
Adds a batch system to the registry for workflow-supplied batch systems.
- Parameters
key (str) –
batchSystemFactory (Callable[[], Type[toil.batchSystems.abstractBatchSystem.AbstractBatchSystem]]) –
- toil.batchSystems.registry.save_batch_system_plugin_state()[source]¶
Return a snapshot of the plugin registry that can be restored to remove added plugins. Useful for testing the plugin system in-process with other tests.
- Return type
Tuple[List[str], Dict[str, Callable[[], Type[toil.batchSystems.abstractBatchSystem.AbstractBatchSystem]]]]
- toil.batchSystems.registry.restore_batch_system_plugin_state(snapshot)[source]¶
Restore the batch system registry state to a snapshot from save_batch_system_plugin_state().
- Parameters
snapshot (Tuple[List[str], Dict[str, Callable[[], Type[toil.batchSystems.abstractBatchSystem.AbstractBatchSystem]]]]) –