Reputation: 2446
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
Upvotes: 3
Views: 6737
Reputation: 2692
Don't use CronTrigger for such a schedule. Use one of the other trigger types such as SimpleTrigger or CalendarIntervalTrigger etc.
Upvotes: 0
Reputation: 882406
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
).
Upvotes: 4