[External task] Camunda External Client HttpClient Timeout Setting

Hi,

Recently we have a problem that the Camunda external task client which use Apache HttpClient to send request to Camunda server and do fetch and lock task, but it was blocked by load balancer.

Then the fetch task thread will be always pending for the resonse from camunda server, no longer working since then.

I wonder if there are configuration for the camunda client http client timeout?

Regards

Hi @camunda_new_player,

maybe you can use the CustomInterceptor of the External task client (External Task Client | docs.camunda.org) to set a timeout. I found more details about httpClient and timeout on Baeldung: https://www.baeldung.com/httpclient-timeout

I’m curious about the results.

You can find the interface for the Interceptor here: camunda-bpm-platform/clients/java/client/src/main/java/org/camunda/bpm/client/interceptor at master · camunda/camunda-bpm-platform · GitHub

Hope this helps, Ingo

Hi @camunda_new_player,

more details for the SpringBoot external task worker can be found here: External Task Client Spring Boot Starter | docs.camunda.org

Hope this helps, Ingo

Hi Ingo,

Thanks for your solution which solved our problem. We set the header in Interceptor and change the long connection to short connection.
Your solution help us a lot.

Many Thanks!

Still have issue by changing the long connection to short connection, the fetch task thread will be always pending for the resonse from camunda server, no longer working since then.

Any ideas how to solve this problem?

Regards