mvSapphire/PowerPipe

Incorrect OnError behavior for nested pipelines

Closed this issue · 0 comments

For example:

var builder = new PipelineBuilder<SamplePipelineContext, SamplePipelineResult>(_pipelineStepFactory, context)
         .If(SampleParallelStep1ExecutionAllowed, b => b
              .Add<SampleStep1>()
              .Add<SampleStep2>()
              .Add<SampleStep3>()
              .Add<SampleStep4>()) // throw
         .OnError(PipelineStepErrorHandling.Suppress)
         .Add<SampleStep5>();

Errors thrown inside nested pipelines are not handled correctly.

Expected behavior:
Errors thrown inside nested pipelines should be handled correctly by themselves or by parent steps