-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Unable to cancel a task scheduled at fixed rate #5143
Comments
I find out that if I re-throw the exception in |
That's correct |
Why don't we need to re-throw the exception when the task is scheduled with fixed delay? |
Expected behavior Task should be canceled
Actual behavior
future.cancel(true);
returns true, but the task still exists in Redis and will be executed again.Steps to reproduce or test case
Run the following code:
Where the code of
TestRunnable
is as the following:The first execution is at 11:54:42.296 (and then the task is canceled)
The second execution is at 11:55:42.378
The third execution is at 12:00:42.478
Redis version 7.0.11 (Docker latest image by July 3, 2023)
Redisson version 3.22.1
Redisson configuration Defaults
The full log of the spring boot (2.7.13) application is pasted below.
The text was updated successfully, but these errors were encountered: