-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DelayExpression not working starting in 2.0.0 #340
Comments
ok,亲~~~
|
您好,我已经收到您的邮件,将尽快给您回复。
|
As a work around use /**
* An expression evaluating to the canonical backoff period. Used as an initial value
* in the exponential case, and as a minimum value in the uniform case. Overrides
* {@link #delay()}. Use {@code #{...}} for one-time evaluation during initialization,
* omit the delimiters for evaluation at runtime.
* @return the initial or canonical backoff period in milliseconds.
* @since 1.2
*/
String delayExpression() default ""; It looks like the runtime evaluation is broken somehow. With 1.3.x, evaluation was always during initialization, regardless of whether delimiters were provided. |
garyrussell
added a commit
to garyrussell/spring-retry
that referenced
this issue
May 17, 2023
Resolves spring-projects#340 Runtime evaluation of `delayExpression` with a `FixedBackOffPolicy` was not implemented causing the expression to be ignored.
artembilan
pushed a commit
that referenced
this issue
May 17, 2023
Resolves #340 Runtime evaluation of `delayExpression` with a `FixedBackOffPolicy` was not implemented causing the expression to be ignored.
kmccarp
pushed a commit
to kmccarp/spring-projects__spring-retry
that referenced
this issue
Jun 5, 2023
Resolves spring-projects#340 Runtime evaluation of `delayExpression` with a `FixedBackOffPolicy` was not implemented causing the expression to be ignored.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am working on a Project with Kotlin and Springboot and have run into an issue with the
delayExpression
value in the@Backoff
annotation. It seems like starting at version2.0.0
any value set will be ignored and instead the default delay of 1000ms will be used.This is an exerpt from my code:
As I said, instead of using a delay of 100ms, the default value of 1000ms is used. Simply downgrading the version to 1.3.4 or lower will fix this issue and the delayExpression will be used.
The text was updated successfully, but these errors were encountered: