We have implemented a scheduled task in our spring boot application, to read messages from MQ. While debugging in IntelliJ I see that the threads of the task are started and then go into a WAIT state after the task is completed.
Is this normal or should the threads be stopped/destroyed after the task completion? Also, do we have to do it manually or Spring takes care of it (and something in the task code is preventing it)