Skip to content

Commit

Permalink
use configured backoff in retry
Browse files Browse the repository at this point in the history
  • Loading branch information
erikpetzold committed Nov 17, 2023
1 parent f334a32 commit e3e834b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit e3e834b

Please sign in to comment.