woom.tasks.Task

woom.tasks.Task#

class woom.tasks.Task(taskconfig, host)[source]#
__init__(taskconfig, host)[source]#

Attributes

artifacts

The artifacts as a dict of file names (dict)

config

The task configuration as loaded from the tasks.cfg (ConfigObj)

env

Instance of woom.env.EnvConfig specific to this task (EnvConfig)

host

The current Host instance (Host)

name

The task name (str)

run_dir

Methods

export(params)

export_artifacts_checking()

Export commandlines to check the existence of artifacts

export_commandline()

Export the commandline as an bash lines

export_env([params])

Export the environment declarations as bash lines

export_run_dir()

Export the bash lines to move to the running directory

export_scheduler_options()

Export a dict of scheduler options

get_run_dir()

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