pyjob.task.ClusterTask(*args, **kwargs)[source]¶Bases: pyjob.task.Task
Abstract base class for executable cluster tasks
get_array_bash_extension(jobsf, offset)[source]¶Get the array job bash extension for the runscript
| Parameters: | |
|---|---|
| Returns: | A list of lines to be written to the |
| Return type: | |
| Raises: |
|
pyjob.task.Task(script, *args, **kwargs)[source]¶Bases: abc.ABC
Abstract base class for executable tasks
add_script(script)[source]¶Add further scripts to this Task
| Parameters: | script (Script, str, list, tuple) – Something representing one or more scripts |
|---|
get_time(minutes)[source]¶Return runtime string with format hh:mm:ss to be used in Task
| Parameters: | minutes (int) – Integer with the number of minutes to allocate to runtime |
|---|---|
| Raises: | PyJobError – Argument is not a positive integer |
log¶The log file path
run()[source]¶Start the execution of this Task
| Raises: |
|
|---|
script¶The script file path