toil.batchSystems.contained_executor
¶
Executor for running inside a container.
Useful for Kubernetes batch system and TES batch system plugin.
Module Contents¶
Functions¶
|
Create a command that, when run, will execute the given job. |
|
Main function of the _toil_contained_executor entrypoint. |
Attributes¶
- toil.batchSystems.contained_executor.logger¶
- toil.batchSystems.contained_executor.pack_job(job_desc, user_script=None, environment=None)[source]¶
Create a command that, when run, will execute the given job.
- Parameters:
job_desc (toil.job.JobDescription) – Job description for the job to run.
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
- Return type:
List[str]
the job is run.
- Returns:
Command to run the job, as an argument list that can be run
- Parameters:
job_desc (toil.job.JobDescription) –
user_script (Optional[toil.resource.Resource]) –
- Return type:
List[str]
inside the Toil appliance container.