My external task client works fine for some hours retrieving tasks whenever they occur, but sometimes (every day at least once) the processing stops. I don’t get any error. It seems that the client is waiting for new tasks but seems to get nothing more. In the cockpit I can see an increasing number of such external tasks. So it seems to me that either the server has stopped delivering tasks to the client or this retrieving does not work after some time. Is there any reason why/when this can happen ?
Is it possible that a short network connection break is the reason for this ?
my Java code looks like this:
externalTaskClient = ExternalTaskClient.create()
.baseUrl(serverUrlCamunda + “engine-rest”)
.addInterceptor(new BasicAuthProvider(“user”, “passsword”))
.maxTasks(1)
.asyncResponseTimeout(30000)
.backoffStrategy(new ExponentialBackoffStrategy(0, 0, 0))
.build();
externalTaskClient.subscribe(topic)
.lockDuration(30_000) // milliseconds (30sec)
.handler((externalTask, externalTaskService) -> {
... do some locig with every external task token
}).open();