I'm using cron scheduler (quartz) and for some reasons (server down...) sometimes a task don't trigger. I wan't to check if task ran or not. My idea was to do that based on cron: I get previous fire date (for example: 0 7 11 4 * ? = At 11:07:00am, on the 4th day, every month I should have 2018/07/04) and I compare it to the latest task's date (got it in db): if it's different then I know task didn't run.
My problem is getting previous fire date.
I tried suggestions here: Finding Last Fired time using a Cron Expression in Java as trigger.getPreviousFireTime();
But still not working... No problem getting next fire time but impossible to get previous fire time (having null or wrong date).
Any idea ?