cancel
Showing results for 
Search instead for 
Did you mean: 

Snap After Union Executing Before All Inputs Are Received

wcl3y2
New Contributor III

I have the following flow, and I’m noticing that Exe Contract Amendment is getting executed before the all inputs from Union Original are received. Is that expected? If so, how do I get the Exe Contract Amendment snap to wait for the union?

image

1 ACCEPTED SOLUTION

koryknick
Employee
Employee

Be careful with Gate… it accumulates all documents in memory and could consume all available resources if you are processing a large number of records.

You could use Sort after the Union instead, which will cache to disk and will wait for all input documents to be processed before continuing to the next snap.

View solution in original post

6 REPLIES 6

SpiroTaleski
Valued Contributor

@wcl3y2

The Union Snap does not wait for the all inputs to be completed, and then to produce the output.

You should replace that Union Snap and try with Gate Snap.

The Gate Snap does not complete executing until the execution of all upstream Snaps is done.

Regards,
Spiro Taleski

wcl3y2
New Contributor III

Great, thank you for the help!

koryknick
Employee
Employee

Be careful with Gate… it accumulates all documents in memory and could consume all available resources if you are processing a large number of records.

You could use Sort after the Union instead, which will cache to disk and will wait for all input documents to be processed before continuing to the next snap.

wcl3y2
New Contributor III

Great, thanks for the additional information.