Commit
22131c0303514bb17881d4cbb222d0a065a4869a
by Lampros Smyrnaios- Overcome the issue where the app would not check if it should shut down for many hours, in case a large "Retry-After" time was given by the Controller, due to starvation of assignments. This was happening because Spring Boot uses a single scheduling thread by default and that thread would be in "sleep"-mode. Now it will use up to 3. So even if one thread is sleeping for multiple hours, the process of checking and performing a shutdown will still be performed. The app will automatically interrupt the sleeping thread upon shutdown.
- Improve handling of "InterruptedException" in scheduling-threads, when the app is about to shutdown.