-
- Downloads
Enostask: rewrite + tests
This is a rewrite of the task module. This module contains the logic that implement the concepts of `enostask` and `environment`. An enostask is an experimental facility that allows to keep track of the experiment context easily. Environment is saved (resp. restored) at the end (resp. the start) of a task transparently. This has been around since the beginning but needed some updates. The main drawback with the initial code was that nested `enostask` wasn't supported. Additionnaly the code was a bit hard to follow and not tested. This patch is a rewrite that - Introduces the environment object (in the past this was a dict) - Increases the test coverage - Allows for nested tasks From the application code this change *should* be transparent. Nevertheless we change the dump format of the environment to `pickle` (`yaml` was used before).
Showing
- .gitlab-ci.yml 8 additions, 0 deletions.gitlab-ci.yml
- enoslib/constants.py 4 additions, 1 deletionenoslib/constants.py
- enoslib/task.py 128 additions, 138 deletionsenoslib/task.py
- enoslib/tests/unit/test_task.py 202 additions, 0 deletionsenoslib/tests/unit/test_task.py
- tox.ini 2 additions, 1 deletiontox.ini
Loading
Please register or sign in to comment