toil.batchSystems.contained_executor¶
Executor for running inside a container.
Useful for Kubernetes batch system and TES batch system plugin.
Attributes¶
Functions¶
|
Create a command that runs the given command in an environment. |
|
Main function of the _toil_contained_executor entrypoint. |
Module Contents¶
- toil.batchSystems.contained_executor.logger¶
- toil.batchSystems.contained_executor.pack_job(command, user_script=None, environment=None)[source]¶
Create a command that runs the given command in an environment.
- Parameters:
command (str) – Worker command to run to run the job.
user_script (Optional[toil.resource.Resource]) – User script that will be loaded before the job is run.
environment (Optional[dict[str, str]]) – Environment variable dict that will be applied before the job is run.
- Returns:
Command to run the job, as an argument list that can be run inside the Toil appliance container.
- Return type: