We are using camunda external task spring boot client in 7.18, I am looking for some guidance on configuring timing properties for external tasks as sometime the external tasks pick up work very fast and sometimes they would wait before start processing work.
The current problem is I have a spring boot function running under a transaction, this call asynchronously completes a camunda task via rest api which make a new external task available to be picked up, so sometimes this new external tasks gets picked up and comepleted even before the original method running under transaction is complete and external task subscriber uses the data inserted by the transactional method. Which means subscriber gets inconsistent/incorrect data as the transaction method is not complete yet.
How can I get around this problem ?
I want some sort of behavior where subscriber will wait for few seconds and allow transactions to complete before it can start processing work. Can I configure some properties to control the behavior of external task subscribers for my requirement ?
Please advise. thanks