Tagged articles
4 articles
Page 1 of 1
Java Captain
Java Captain
Apr 20, 2025 · Backend Development

Dynamic Adjustment of Scheduled Tasks in SpringBoot Using ThreadPoolTaskScheduler

This article explains how to dynamically modify the execution time of SpringBoot scheduled tasks by combining ScheduledTaskRegistrar with ThreadPoolTaskScheduler, decoupling business logic from triggers, and provides complete code examples for adding, updating, and removing tasks at runtime.

Dynamic SchedulingScheduledTaskSpringBoot
0 likes · 9 min read
Dynamic Adjustment of Scheduled Tasks in SpringBoot Using ThreadPoolTaskScheduler
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 11, 2024 · Backend Development

Mastering Async and Scheduled Tasks in Spring Boot 3.2.5

This guide explains how to enable and use Spring Boot's @Async and @Scheduled annotations, configure various TaskExecutor and TaskScheduler implementations, leverage new Spring 6.1 pause/resume and virtual‑thread features, and apply graceful shutdown for both asynchronous and scheduled jobs.

AsyncScheduled TasksSpring 6.1
0 likes · 10 min read
Mastering Async and Scheduled Tasks in Spring Boot 3.2.5
Programmer DD
Programmer DD
Apr 1, 2018 · Backend Development

Graceful Shutdown of Spring Boot ThreadPoolTaskScheduler to Prevent Redis Errors

This article explains why asynchronous @Async tasks using a custom ThreadPoolTaskScheduler can fail during application shutdown due to premature Redis connection pool destruction, and provides a step‑by‑step solution using Spring's shutdown configuration to wait for tasks to complete before closing resources.

AsyncGraceful ShutdownSpring Boot
0 likes · 8 min read
Graceful Shutdown of Spring Boot ThreadPoolTaskScheduler to Prevent Redis Errors