Skip to content

Multiple TaskSchedulers to be supported with @Scheduled [SPR-16271] #20818

Closed
@spring-projects-issues

Description

@spring-projects-issues

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 configured


Affects: 4.3.13

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions