Skip to content

Retryable with exponential backoff not working with delayExpression #397

Closed
@mreichenbach-igniti

Description

@mreichenbach-igniti

Hi,

I tried to use the @Retryable annotation in spring boot with a configurable delay and exponential backoff. This is how I tried it:

@Retryable(
    maxAttemptsExpression = "3",
    backoff = @Backoff(delayExpression = "600", multiplier = 2, maxDelay = 10000)
)

The maxAttemptsExpression and delayExpression are actually filled with environment variables via "${...}"

Expected: exponential delay as described in the documentation

Actual: constant delay of 600ms

When I change it to delay = 600 then it's working as expected. I checked it with spring-retry 2.0.4

Thanks for having a look!
Regards, Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions