Execute all pipeline processes until not oktorun. The oktorun arg must be a reference. The pipeline will run until oktorun is false. The oktorun ref is passed to every pipeline proc so they can completely terminate pipeline execution. A proc signals that it wants to restart execution of the pipeline from the first proc by returning undef. If a proc both sets oktorun to false and returns undef, this sub will return with some info about where the pipeline stopped.
Parameters
%args | Arguments passed to each pipeline process. |
Required Arguments
oktorun | Scalar ref that indicates it’s ok to run when true. |
Optional Arguments
pipeline_data | Hashref passed through all processes. |
Returns
Hashref with information about where and why the pipeline terminated.