Skip to content
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

Provide first-class virtual thread option on ThreadPoolTaskExecutor/ThreadPoolTaskScheduler #33807

Closed
jhoeller opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@jhoeller
Copy link
Contributor

As mentioned in ##33780 (comment), there are scenarios where a ThreadPoolTaskExecutor or ThreadPoolTaskScheduler benefits from being configured with a factory for virtual threads. In contrast to SimpleAsyncTaskExecutor/SimpleAsyncTaskScheduler, this is naturally integrated with Spring's lifecycle management for stopping and restarting execution threads, including an early stop signal for a graceful shutdown arrangement. For 6.2, we can provide first-class virtual thread support through a setVirtualThreads(true) flag on ThreadPoolTaskExecutor and ThreadPoolTaskScheduler.

@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Oct 28, 2024
@jhoeller jhoeller added this to the 6.2.0 milestone Oct 28, 2024
@jhoeller jhoeller self-assigned this Oct 28, 2024
quaff added a commit to quaff/spring-boot that referenced this issue Oct 29, 2024
quaff added a commit to quaff/spring-boot that referenced this issue Oct 29, 2024
quaff added a commit to quaff/spring-boot that referenced this issue Oct 29, 2024
quaff added a commit to quaff/spring-boot that referenced this issue Oct 29, 2024
quaff added a commit to quaff/spring-boot that referenced this issue Oct 29, 2024
quaff added a commit to quaff/spring-boot that referenced this issue Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant