TL;DR


Be wary of threading, locking, and job duration when using Spring Scheduler on an application deployed in Kubernetes to prevent duplicate and delayed job runs. If you're not too far down the Spring Scheduler route, consider an alternate solution like Kubernetes CronJob.




Background


My pair and I were tasked with implementing two...