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

Tail snap and documents

andre_mangatal
New Contributor

Hello Snaplogic Community

We have a pipeline that has a JSON generator acting as a loop with some dates as input into the first pipeline execute and we need to have the loop entirely finished before calling the second pipeline execute but the tail snap with number of documents set to 1 presently calls the second pipeline execute even before the โ€œloopโ€ finishes executing.

How can this be achieved??? Should the tail snap be set to the no of documents from the JSON generator? Thank you very much in advance.

image

2 REPLIES 2

pramisetti
New Contributor II

Hello,
My suggestion rather than using tail snap use Group By N snap and keep the Group Size as 0. It will wait for all the documents which are processing in first pipeline and then you can map your object after Group By N something like $group.Date etcโ€ฆ and call the second process.

Jump
Employee
Employee

I also use the Tail Snap to control the flow of the execution. Please share the setting of the second Pipeline Execute Snap. Do you have the โ€œreuseโ€ on? If so, the pipeline will start as soon as the main pipeline starts, but if the โ€œreuseโ€ is off, it should start when there is an input document getting into the Snap.