Can someone please explain what is asyncResponseTimeout , and backoffStrategy to configure external task client.
I want my external task client to fetch tasks and finish them then itself , and if there are no tasks found, wait for 30 seconds and then do the fetch again. If again there are not tasks found, suspend for 2 minutes and fetch again.
asyncResonseTimeout is the interval, where the server waits for a new tasks and delivers the response immediatly to the client. This setting decrease time laps between task creation and fetch-and-lock, if the server is idle. It’s called LongPolling.
I understand your question
as a usecase for backoffStrategy. The DefaultBackoffStrategy doubles the wait time for each request, maximum 60 seconds. You can create a new BackoffStrategy to fit your needs.
For example: .backoffStrategy(new ExponentialBackoffStrategy(30000, 2, 120000))