template_queue#
- caput.pipeline.runner.template_queue(templatefile: os.PathLike, var: str, overwrite: Literal['never', 'failed'], email: str | None = None, mailtype: str | None = None)[source]#
Queue a pipeline from the given templatefile.
Template variable substitutions are specified with –var <varname>=<val> arguments, with one for each variable. <val> may be a comma separated list, in which case item represents a separate value that is processed. Values must not contain a comma themselves. If multiple variables are specified, each with multiple substitutions the outer product of all possible values is generated.
- Parameters:
- templatefile
os.PathLike Path to a .yaml file containing the pipeline template.
- var
str Template variable substitutions.
- overwrite{“never”, “failed”}
How to handle job directories which already exist. If “failed”, only jobs which have reported FAILED will be re-queued.
- email
str|None, optional Email address for job status notifications.
- mailtype
str|None, optional Types of job events for which to send email notifications. These are typically specific to the queue system used.
- templatefile