spring-retry
spring-retry copied to clipboard
Non-blocking backOff policy
Would like to have a backOff policy that does not block the thread of execution. The use-case for this is roughly having a long-lived job that is comprised of many short-lived steps, where some step in the sequence retries potentially many times for a long period. Freeing up the thread will allow steps from other jobs to be executed during the blocking step's backOff period.
+1
Is it not meant to make us of a stateful retry for such an use case? I also have a long living retry and need that feature too. But can't really get stateful retry to work.
+1
+1 any update?
Not an answer, just a few related links: https://github.com/spring-projects/spring-retry/issues/154 https://github.com/spring-projects/spring-retry/pull/176
Just use this library which achieves exactly what you want. I've been using it in several production systems for like 5 years - works great! https://github.com/nurkiewicz/async-retry