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.
#35710 (comment)