e_model_packager.common_tasks¶
Represents common tasks that can be reused in multiple workflows.
Classes
|
Task to log the modules and python packages used in the execution. |
|
A smarter task that automatically removes output of failed tasks. |
- class CreateSystemLog(*args, **kwargs)¶
Bases:
SmartTaskTask 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,TaskA 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.