Jayz
Jayz

Reputation: 1174

quartz cron to fire every 90 min starting midnight

I want a cron job (or a combination of 2 jobs) which fires at 00:00, 01:30, 03:00 and so on for all day. What can be the most succinct way to write the expression?

Upvotes: 1

Views: 3401

Answers (2)

m0ntassar
m0ntassar

Reputation: 310

you need to split it into 2 jobs since it is an odd frequency

0 0-21/3 * * * command

30 1-22/3 * * * command

Upvotes: 3

Jigar Joshi
Jigar Joshi

Reputation: 240908

Use following cron expression to configure your cron trigger

0 0/30 0,23 * * ?

Also See

Upvotes: 0

Related Questions