-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Application stuck on shutdown with custom scheduler #29301
Comments
That sounds like the expected behavior to me. The non-working example is creating a task scheduler manually. You're then responsible to shut it down, which happens automatically when exposed as a |
hi @snicoll, here is attempt to fix it: alexey-anufriev/spring-shutdown-stuck-with-custom-scheduler@828bf9f but the behavior is still the same |
@alexey-anufriev I'm trying to reproduce the error, but I can't get it to fail in the IDE or by using |
@philwebb, you can check my README: https://github.com/alexey-anufriev/spring-shutdown-stuck-with-custom-scheduler/blob/master/README.md or just run it is important to have a profile enabled. |
@alexey-anufriev I did that and replicated the problem when using |
@philwebb that's because @alexey-anufriev my initial comment still stands. I've created spring-projects/spring-framework#27914 to improve things in that area. |
@snicoll, my initial thought was that spring boot just missed to close |
Application stuck on shutdown if
ConcurrentTaskScheduler
is used and application has startup error.Reproducer repository:
https://github.com/alexey-anufriev/spring-shutdown-stuck-with-custom-scheduler
Readme:
https://github.com/alexey-anufriev/spring-shutdown-stuck-with-custom-scheduler/blob/master/README.md
The text was updated successfully, but these errors were encountered: