-
Notifications
You must be signed in to change notification settings - Fork 38.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
Multiple TaskSchedulers to be supported with @Scheduled [SPR-16271] #20818
Comments
It is also worth to mention that |
Hi, |
Hello, I also need this. |
Another workaround but it would be simpler for it to be supported directly via the annotation. But again, a native support would be very much appreciated From : org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor |
@idkw great answer!. Can you post the generic dispatcher code into some gist? Thanks. |
I don't have any code, this was just an idea of a possible workaround |
any progres ? |
This is finally coming in 6.1 now: with a |
Peter Szanto opened SPR-16271 and commented
I would like to have multiple scheduled tasks in my application, with multiple their pool size, thread name and some as daemon. I can customize these properties using a TaskScheduler, but in an single application I can have only one TaskScheduler. It would be nice if I could define multiple schedulers and refer them in the
@Scheduled
annotation similar as I can refer cache name in the@Cacheable
annotation. There could be even something similar to@CacheConfig
so class level settings for multiple scheduled definitions could be configuredAffects: 4.3.13
The text was updated successfully, but these errors were encountered: