Optimistic locking exception retry customization

We are using camunda 7.7.0. Is there o way for me to customize number of retrys when Optimistic locking exception occures? If this exception occures i want to try only once then fail with exception.

@FilipGregor if Optimistic locking exceptions occurred in service tasks or with any async boundaries executions which are in camunda job executor scope will be auto retried with 3 times. For implementing custom retry mechanism for this exception you can try below:

if Optimistic locking exceptions occured in User Task type then you can try with implementing Spring Rest Template retry.

1 Like