SimpleAsyncTaskExecutor got support for graceful termination in Spring Framework 6.1.
I think it would be helpful to be able to configure the taskTerminationTimeout value, either via the existing spring.task.execution.shutdown.await-termination-period or a new property.
https://github.com/spring-projects/spring-boot/issues/35710#issuecomment-1653353739