Quartz job works by trigger 0 0 19-5 * * ?
(every hour from 7:00 PM to 5:00 AM). Process may take a long time, more than 1 hour. Cron expression is a part of external configuration. How to graceful stop Quartz job after 5:00 AM if process continue works?
Even if we start last iteration at 4:00 AM, there is no guarantee that it will be completed in 1 hour. Also if we start the last iteration at 3:00 AM, there is no guarantee that it will complete in 2 hours.