spring-retry icon indicating copy to clipboard operation
spring-retry copied to clipboard

Non-blocking backOff policy

Open danveloper opened this issue 10 years ago • 6 comments

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.

danveloper avatar Jan 28 '15 23:01 danveloper

+1

poznachowski avatar Jan 07 '16 13:01 poznachowski

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.

Snapu avatar Jul 25 '17 14:07 Snapu

+1

sofiaguyang avatar Jan 09 '18 06:01 sofiaguyang

+1 any update?

ChaminW avatar Sep 06 '19 07:09 ChaminW

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

ashamukov avatar Sep 06 '19 09:09 ashamukov

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

ipalopezhentsev avatar Aug 26 '21 13:08 ipalopezhentsev