Stopping Pipeline Execution


I’m working on a pipeline here that receives a link for a JSON file from an API endpoint. The problem is that eventually the endpoint will send no JSON at all. Although the File Reader snap that open the JSON from the endpoint will throw an error, the pipeline will continue execution and pass an empty json through the DIFF snap. When it happens, it sends every file already on my server to the DELETE diff output.

How can i make to stop execution BEFORE the diff when there is no file coming from the endpoint ?

Thanks for the help…

Can you restructure your pipeline to get the JSON link first, and use a Filter or Router to continue the rest of your logic only if the link is not empty?

Alternatively, you could get the link in a parent pipeline and only call to perform your full read and diff operations in a child pipeline using Pipeline Execute when the link is not empty.

1 Like