I had a requirement for writing a cron job in Java using Quartz api. I finished it, but I had to wait before I start running it at the scheduled interval as there were some other dependencies that were yet to be resolved. So I needed a cron job expression that wouldn’t run at all. So what I did was add the below cron expression in the property file:
0 0 0 1 1 ? 2099
The above expression will run only in 2099
So practically this cron job expression will never run, at least not in my lifetime
I can now easily check in my code and when the dependencies are resolved what I need to do is just change the cron job expression to a meaningful one so that the scheduled job starts running at the normal interval.