woom.tasks.Task#
- class woom.tasks.Task(taskconfig, host)[source]#
-
Attributes
The artifacts as a dict of file names (
dict)The task configuration as loaded from the
tasks.cfg(ConfigObj)Instance of
woom.env.EnvConfigspecific to this task (EnvConfig)The task name (
str)Methods
export(params)Export commandlines to check the existence of artifacts
Export the commandline as an bash lines
export_env([params])Export the environment declarations as bash lines
Export the bash lines to move to the running directory
Export a dict of scheduler options
Get the run directory
render_artifacts(params)Check that artifact paths are absolute and render them as dict
render_content(params)Render the task content with jinja