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

Emit warning when ThreadPoolTaskScheduler is unable to meet task delay #33856

Open
DanielThomas opened this issue Nov 8, 2024 · 0 comments
Open
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@DanielThomas
Copy link

It seems like a pretty common gotcha for applications with more than one type of scheduled task to run into issues when those tasks are long running and the default value for spring.task.scheduling.pool.size is 1.

Virtual threads in Spring Boot obviously helps mitigate this, but for other uses if ThreadPoolTaskScheduler had a dedicated thread to peek the queue and determine if the next RunnableScheduledFuture delay had expired and log a warning, that would make it far easier to diagnose when thread starvation is preventing tasks from running on schedule.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Nov 8, 2024
@jhoeller jhoeller added the in: core Issues in core modules (aop, beans, core, context, expression) label Nov 11, 2024
@jhoeller jhoeller added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Feb 5, 2025
@jhoeller jhoeller added this to the 6.2.x milestone Feb 5, 2025
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

3 participants