0

Is there any way to get how many retries the @Retry did before the method succeeded?

For example you have maxRetries = 3, then it was succeeded on 2nd retry, I want to get that value and save it in my database. Like this:

if(retry == success) {
saveToDatabase(retryNum);
}
Eve
  • 43
  • 1
  • 10
  • 1
    That is not possible, no. I can't imagine how the API would look like to expose this. Note that retry metrics, as well as other metrics, do expose similar kinds of information, but that isn't really available on a per-invocation basis. – Ladicek Aug 10 '23 at 19:54

0 Answers0