From f14754edf416fe7a6b48c1521409f50fee622679 Mon Sep 17 00:00:00 2001 From: Jakob Wanger Date: Mon, 19 Feb 2024 20:46:13 -0500 Subject: [PATCH] DOCS - Clarify that pool size properties are ignored with task executor https://github.com/spring-projects/spring-boot/issues/39529 Signed-off-by: Jakob Wanger --- .../docs/asciidoc/features/task-execution-and-scheduling.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc index 547be8751408..3f69a73030ef 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc @@ -38,7 +38,7 @@ Shrinking of the pool is more aggressive as threads are reclaimed when they are A scheduler can also be auto-configured if it needs to be associated with scheduled task execution (using `@EnableScheduling` for instance). When virtual threads are enabled (using Java 21+ and configprop:spring.threads.virtual.enabled[] set to `true`) this will be a `SimpleAsyncTaskScheduler` that uses virtual threads. -Otherwise, it will be a `ThreadPoolTaskScheduler` with sensible defaults. +Otherwise, it will be a `ThreadPoolTaskScheduler` with sensible defaults. Note, the `SimpleAsyncTaskScheduler` will ignore any pool size properties. The `ThreadPoolTaskScheduler` uses one thread by default and its settings can be fine-tuned using the `spring.task.scheduling` namespace, as shown in the following example: