committed by
Christian Tzolov
parent
41d2cb5827
commit
75db25b13d
@@ -53,7 +53,7 @@ public class SpringAiRetryAutoConfiguration {
|
|||||||
public RetryTemplate retryTemplate(SpringAiRetryProperties properties) {
|
public RetryTemplate retryTemplate(SpringAiRetryProperties properties) {
|
||||||
return RetryTemplate.builder()
|
return RetryTemplate.builder()
|
||||||
.maxAttempts(properties.getMaxAttempts())
|
.maxAttempts(properties.getMaxAttempts())
|
||||||
.retryOn(NonTransientAiException.class)
|
.retryOn(TransientAiException.class)
|
||||||
.exponentialBackoff(properties.getBackoff().getInitialInterval(), properties.getBackoff().getMultiplier(),
|
.exponentialBackoff(properties.getBackoff().getInitialInterval(), properties.getBackoff().getMultiplier(),
|
||||||
properties.getBackoff().getMaxInterval())
|
properties.getBackoff().getMaxInterval())
|
||||||
.withListener(new RetryListener() {
|
.withListener(new RetryListener() {
|
||||||
|
|||||||
Reference in New Issue
Block a user