Forum Discussion
It sounds like more than one document is being output by the “Store Transactions” pipeline, is that correct? The “Process Transactions” pipeline will be executed for every input document it receives. So, if “Store Transactions” is outputting five docs, “Process Transactions” will be executed five times.
Do you actually use the output generated by the child pipeline?
If you only want a single doc to come out of the child, you can close off the unlinked output. Or, you can use a Tail snap.
Hi Tim
Thanks a lot for your response. I don’t actually need to use any output generated by the child pipeline from “Store Transactions”. I just need to call “Process Transactions” at that point. What do you suggest? I can use the Tail snap if I just need to call it?
Thanks again
- bhupender_singh7 years agoNew Contributor III
@andre.mangatal
@tstack has already answered it, tail snap reads the specified number of documents from the end of the input stream. As per your requirement if you use “tail snap” between “Store Transactions” and “Process Transactions”, you will be able to ENSURE that there is only one call to “Process Transactions”.end of you pipeline would look like:
- andre_mangatal7 years agoNew Contributor
Hi thanks a lot … appreciate it