I'm using the Quartz Grails Plugin and I need to schedule a job that runs at 3am, 9am, 3pm, 9pm every day. This seems like a valid cron expression:
* 3,9,15,21 * * *
But Quartz doesn't support that. Is what I need to do possible?
In Quartz, there is an additional position to the expression. The first one represents seconds, not minutes, as it is for unix-style cron expressions. The other issue is with quartz support for specifying day-of-week and day-of-month:
Support for specifying both a day-of-week and a day-of-month value is not complete (you must currently use the '?' character in one of these fields).
This should work:
* * 3,9,15,21 * * ?
Take a look at this guide and the Quartz grails docs for more details.