โ06-12-2017 02:17 AM
Hi all,
We are trying to use the Pipeline Monitoring API in our implementation to trace which of the service calls have failed,
using e.g. ___https://elastic.snaplogic.com/api/1/rest/public/runtime/Partners?last_hours=100&state=Completed,Fail....
Based on the output/results of the Monitoring API, weโll build a exception replay service to pick the document data (message payload) of all the failed transactions and replay/re-trigger then from the pipeline.
But the challenge is when we use error view in the pipeline, the state of a particular transaction is always captured as โCompletedโ instead of โFailedโ or โNoUpdateโ, 'Preparedโ, 'Startedโ, 'Queuedโ, 'Stoppedโ, 'Stoppingโ. Also, so far weโre not able to figure out how to problematically overwrite the state as well, which if possible will come handy to filter the โfailedโ transactions for replay purpose.
Please suggest if someone has observed similar design challenge or there is a possible workaround available.
Best,
YV
โ06-12-2017 10:46 AM
Not sure if I understood the problem correctly, I think, I faced similar design issue. Basically, you want the pipeline status to be returned as failure if data flow goes through error view. If this is the case, you can just union all of your error view into a single flow and then add an exit snap.
โ06-12-2017 10:49 AM
Thanks a lot dippradhan, I forgot to update the thread, we also figured out the same solution to use exit snap at the end.
Thanks again for responding to my query.
Best,
YV
โ11-11-2021 02:30 AM
May I know how you are passing the state in pipeline and what base you will get the result completed failed stoppedโฆ
I need to implement in my pipeline
like pass the parameter as state with dynamically,