โ06-20-2019 08:51 PM
There is a child pipeline which returns values like completed, in queue, processing etc. The requirement is that parent pipeline to run this child pipeline till it returns Completed, of-course after certain wait time. Its like while loop, run the child pipeline, till the expression is true. How do accomplish this in snaplogic ?
Appreciate any pointersโฆ
โ06-21-2019 11:30 AM
All these are REST API Get/POST jobs
โ06-21-2019 12:15 PM
What do you mean by โqueue upโ here? Is the queue in an external service and the children are pulling from there? Maybe Iโm misunderstanding.
I guess I would expect the parent pipeline to pull from the queue and let the PipelineExecute snap distribute documents to child executions.
Sorry, Iโm having trouble visualizing the parent and child pipelines here. Would you be able to attach a screenshot of them or an SLP export?
โ06-21-2019 12:36 PM
Yes. Its external (Marketo) service.Parent submits a bulk job and in the response object we get a exportID. We have to keep checking the status (REST Get Call to Marketo) of this export job thru another Marketo endpoint which happens in a child pipeline. This child pipeline should be running in while loop kind of thing till we get a success/failure response. Picture of child pipeline attached.
โ06-21-2019 01:04 PM
@MuraliNagula - This can be achieved using "Has next "and โNext URLโ properties. Below rest snap invokes Next URL based on Has next flag. You can refer Snap documentation for more info.
โ06-21-2019 01:26 PM
I just wanted to add on that you should set the โPagination intervalโ as well so that the requests arenโt made too quickly.