From e3e834b27b96f32523d633bd3b0e4cbb486a5690 Mon Sep 17 00:00:00 2001 From: "erik.petzold" Date: Fri, 17 Nov 2023 08:56:41 +0100 Subject: [PATCH] use configured backoff in retry --- .../de/codecentric/boot/admin/server/services/IntervalCheck.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/services/IntervalCheck.java b/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/services/IntervalCheck.java index 4bb1850e0a5..9f982e13fcf 100644 --- a/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/services/IntervalCheck.java +++ b/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/services/IntervalCheck.java @@ -85,6 +85,7 @@ public void start() { .subscribeOn(this.scheduler) .concatMap((i) -> this.checkAllInstances()) .retryWhen(Retry.backoff(Long.MAX_VALUE, Duration.ofSeconds(1)) + .maxBackoff(maxBackoff) .doBeforeRetry((s) -> log.warn("Unexpected error in {}-check", this.name, s.failure()))) .subscribe(null, (error) -> log.error("Unexpected error in {}-check", name, error)); }