e_model_packager.common_tasks

Represents common tasks that can be reused in multiple workflows.

Classes

CreateSystemLog(*args, **kwargs)

Task to log the modules and python packages used in the execution.

SmartTask(*args, **kwargs)

A smarter task that automatically removes output of failed tasks.

class CreateSystemLog(*args, **kwargs)

Bases: SmartTask

Task to log the modules and python packages used in the execution.

output()

A log file to be written.

run()

Writes down the loaded modules, pip packages and python version.

class SmartTask(*args, **kwargs)

Bases: RemoveCorruptedOutputMixin, Task

A smarter task that automatically removes output of failed tasks.

This is to ensure that no corrupted or incomplete output gets generated if the Task fails unexpectedly. This is the default behaviour in other wfms such as snakemake.