Support Questions
Find answers, ask questions, and share your expertise

NiFi processor timeout - calling API

Solved Go to solution

NiFi processor timeout - calling API

When utilizing a processor that calls an external API call, is there a way to set a timeout (for example if the API never responds) wait for 1 minute (max).

Would the processor just continue to wait for a response?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: NiFi processor timeout - calling API

Hi @Ryan Cicak

Several processors that call an API (if not all) have a property Connection Timeout. You can set this property to wait for a fixed duration depending on your data source, network condition and so on (look at GetHttp for instance).

You can use this property with a max retry strategy. The processor wait until the time out expire, and try again until it reaches a max retry number. If the max retry is reached, the flowfile goes into a processor that handle this special case (alert an admin, store data in a dir for errors, etc)

View solution in original post

1 REPLY 1
Highlighted

Re: NiFi processor timeout - calling API

Hi @Ryan Cicak

Several processors that call an API (if not all) have a property Connection Timeout. You can set this property to wait for a fixed duration depending on your data source, network condition and so on (look at GetHttp for instance).

You can use this property with a max retry strategy. The processor wait until the time out expire, and try again until it reaches a max retry number. If the max retry is reached, the flowfile goes into a processor that handle this special case (alert an admin, store data in a dir for errors, etc)

View solution in original post

Don't have an account?