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.