Hello,
I need some advice on how to handle DST quartz jobs scheduling.
I have many quartz jobs running the morning reports and emailing them to customers. They are scheduled with quartz cron expressions, UTC time.
- how can I make such jobs to observe the DST automatically as its not practical to reschedule many jobs?
→ seems its possible with quartz, to schedule programatically
CronScheduleBuilder.cronSchedule("0 0 12 * * ?") // Schedule for 12 PM daily
.inTimeZone(TimeZone.getTimeZone("America/New_York")); // Specify the time zone
however Jmix addon UI does not have that option, and I would like users to be able to handle the scheduling from the UI
- Would it be OK to extend the addon UI and code to accommodate this?
- Is anyone using quartz DST jobs? What is your experience
→ another approach I can think of is to reschedule QuartzScheduler.rescheduleJob at the DST night, go through all the jobs and change the cron expression, which approach is better?
Kind regards,
Mladen