cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Writing files with Child Pipeline - spawning multiple children?

graham-onpoint
New Contributor II

I have a simple debugging Pipeline that I would like to insert at various points in my main Pipeline:

image

Two parameters are sent to the debugging pipeline:

image

The router uses the DEBUG value to see if it needs to send output to the Excel formatter and File Writer.

image

Hereโ€™s an example of how this is being called from the parent/master Pipeline, it reads the DEBUG parameter from the Pipeline level:

image

When I add this into the parent/master pipeline it never finishes executing and it spawns a LOT of child pipelines according to the Dashboard. Files are being written to the system.

image

Here is the section of the parent pipeline where the debug calls are being made, there are only three inserted right now:

image

What is causing this to spawn so many processes and effectively freeze?

When inserted into the parent/main pipeline with copy/paste they work exactly as expected.

3 REPLIES 3

christwr
Contributor III

PipelineExecute will invoke the child pipeline for every document.

tstack
Former Employee

As @christwr mentioned, the default behavior in PipeExec is to spawn a child for every input document. It sounds like you want the opposite behavior, to start a single child that processes all documents received by the PipeExec. You can switch to that behavior by selecting the Reuse executions to process documents option.

Thank you very much.