Re: Retry logic for rest api - NIFI

2020-07-30 Thread KhajaAsmath Mohammed
Thanks Matt. I got it. We implemented a similar approach to retry in database failures. I will try that now. On Thu, Jul 30, 2020 at 3:31 PM Matt Burgess wrote: > Asmath, > > InvokeHttp routes the original flowfile to a number of different > relationships based on things like the status code.

Re: Retry logic for rest api - NIFI

2020-07-30 Thread Matt Burgess
Asmath, InvokeHttp routes the original flowfile to a number of different relationships based on things like the status code. For example if you're looking for a 2xx code but want to retry on that for some reason, you'd use the "Original" relationship. If you want a retryable code (5xx) you can

Re: Retry logic for rest api - NIFI

2020-07-30 Thread KhajaAsmath Mohammed
can you please let me know how to use this in NIFI. On Thu, Jul 30, 2020 at 11:19 AM Otto Fowler wrote: > nipyapi does something like that: > https://github.com/Chaffelson/nipyapi/blob/164351ee2d92f8c4a75989310662bbad0f7bafc4/nipyapi/utils.py#L210 > > > > > On July 30, 2020 at 11:22:29,

Re: Retry logic for rest api - NIFI

2020-07-30 Thread Otto Fowler
nipyapi does something like that: https://github.com/Chaffelson/nipyapi/blob/164351ee2d92f8c4a75989310662bbad0f7bafc4/nipyapi/utils.py#L210 On July 30, 2020 at 11:22:29, KhajaAsmath Mohammed (mdkhajaasm...@gmail.com) wrote: Hi, I am looking for some information on how to do retry logic on