My Java Spring @Scheduled methods stopped running in production
The first time The first time I encountered this issue was an @Scheduled annotation wrapping a method that performed a long(ish) running query. For example:
java @Scheduled(fixedRate = 600000) public void scheduledMethod() { System.out.println("I am running"); performSomeLongRunningQuery(); System.out.println("I am done"); } This works great, right? For months in production, my query had been running every 10 minutes as I so clearly told it to until one day I got a call that indicated to me that is was no longer running.
Hello, World!
The man behind the blog post I have been working as a software developer for 3 years now. I write primarily Java and Angular at work but I have been spending my mornings before work learning Go. I have been practicing yoga for just over 2 years and I have my wife to thank for getting me into it. I enjoy two cups of coffee a day and my preferred brewing method is pour over.