07-10-2017 02:56 AM
When a pipeline fails, there are some snaps whose execution stops, want to understand how does it actually happen?
Example, I have the below pipeline,
when one of the pipeline in this fails I see the below statistics,
I do not understand why the other independent pipeline’s execution should be affected?
07-10-2017 08:42 AM
The pipeline execution can be stopped in two particular ways.
It will error out in the above order.
In your particular case, the pipeline execute failed because of underlying
child pipeline errors. If you had errors view enabled, you would have seen
it there.
If your child pipeline had 2 unconnected outputs then the snap would have
failed right during the execution while preparing for it.
Hope that makes sense.
Thanks & Regards,
Naveen
07-10-2017 07:43 PM
Thank you for the information, however I am looking to understand why should failure of one child pipeline affect / stop the other child pipeline.
In my case there 2 child pipelines I am calling using pipeline execute. Now when I have an error in child1 its failure is obvious, but why is the execution of child2 be stopped?
07-11-2017 07:07 PM
Did you have the error view on the pipeline execute and experience this
issue? Can you enable the error view and let us know how it behaves?
Thanks & Regards,
Naveen
07-12-2017 06:25 AM
To clarify, child executions are not independent of their parent. All child executions are governed by their parent. If the parent is stopped, all of its child executions will be stopped as well. This behavior was chosen so that it was not possible to lose control and have runaway executions.
When child1 fails, the PipeExec snap will signal the failure by writing an error document. Since the PipeExec snap does not have the error view open and is configured to stop pipeline execution in case of an error, the snap will be marked as failed and the parent pipeline will be stopped. And, since the parent is stopped, all of the children will be stopped as well.