How can I dynamically grow the number of threads in Spring Batch with a `ThreadPoolTaskExecutor` without rejecting incoming tasks?
I have a spring batch application that's in charge of a few dozen jobs which are running using cron scheduling.
I've been having some issues where some jobs aren't being ran, and I think this is because I was lacking a TaskExecutor, causing my JobLauncher to launch jobs synchronously.
I've included a ThreadPoolTaskExecutor with the following bean configuration:
@Bean
fun taskExecutor(): TaskExecutor {
val executor = ThreadPoolTaskExecutor()
executor.corePoolSize = 1...