Wrap pipeline unit type

The last pipeline unit type is named “wrap”. This pipeline unit is called after a final state is accepted by strides.

This pipeline unit was introduce for a sake of completeness. One of the possible use cases is registering a callback during Thoth’s adviser runs made for experiments (for example Thoth Jupyter Notebook experiments) to let user hook in an action once a software stack is resolved (but the software stack resolution pipeline is still running).

Note

Raising any exception in a wrap causes the pipeline resolution to halt, with a corresponding failure that reports the exception message.

The implementation can also provide other methods, such as Unit.pre_run, Unit.post_run or Unit.post_run_report and pipeline unit configuration adjustment. See unit documentation for more info.