Execute some logic after unsuccessful retries

Hello,
I am wondering whether there is some mechanism that allows executing custom logic as soon as all retries have been unsuccessful.

Thanks!

Yes, inside the workflow catch the ActivityFailure exception and perform the logic in the catch block:

try {
  a.myActivity(..);
} catch (ActivityFailure e) {
 // custom logic
}
1 Like