Forum Discussion

wcl3y2's avatar
wcl3y2
New Contributor III
5 years ago
Solved

Snap After Union Executing Before All Inputs Are Received

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?

  • 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.

6 Replies

  • 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's avatar
      wcl3y2
      New Contributor III

      Great, thanks for the additional information.

  • SpiroTaleski's avatar
    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's avatar
      wcl3y2
      New Contributor III

      Great, thank you for the help!

  • clinton_hemmant's avatar
    clinton_hemmant
    New Contributor III

    Hi

    Or a Filter after the Union would also force the wait for all inputs?

    Regards

    Clinton