3
votes

How should I go about creating a cron expression that will fire every 90 minutes continuously after midnight? Documentation here: http://www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger

Pratik

2

2 Answers

3
votes

I would just configure two cron jobs:

#min hr                     everything else
 0   0,3,6,9,12,15,18,21    ...
30   1,4,7,10,13,16,19,22   ...

(you could also use the short form for the hours as well, like 0-21/3 and 1-22/3).

0
votes

Don't use CronTrigger for such a schedule. Use one of the other trigger types such as SimpleTrigger or CalendarIntervalTrigger etc.