Forum Discussion

erkonline's avatar
erkonline
New Contributor
5 years ago

Calling a pipeline/task from curl command

I have created a pipeline/task and called that using curl command and it is returning the document which is available in the last snap. I have added error pipeline to it. Called main pipeline/task using curl again. When there is no error it is returning the document which is available in the last snap(from main pipeline) as expected but when there is failure it is simply returning instead of last snap output in the error pipeline. how to return some value to curl command when pipeline is failed and entered in error pipeline.

2 Replies

  • Supratim's avatar
    Supratim
    Contributor III

    @erkonline I think error pipeline is the best use for normal ETL use cases. If you create an API then do better to use error view and customize your error message then do an union for your successful and failure flow, which will retrun as a final response of your API.

    I think there is no way to get response back from error pipeline to main pipeline.

  • skatpally's avatar
    skatpally
    Former Employee

    Error pipeline will only return response to parent for ultra.