Last updated by rlovtang 9 months ago
Just execute following from your application directory:
grails install-plugin quartz
If above method does not work for some reason you can install it with:
grails install-plugin http://cloud.github.com/downloads/nebolsin/grails-quartz/grails-quartz-0.4.2.zip
If you're interested in the latest sources, visit
GitHub project page or use
git clone git://github.com/nebolsin/grails-quartz.git
Last updated by graemerocher 2 hours ago
Full documentation can be found
here
Last updated by 000panther 5 months ago
Q: Can I change the scheduling for a Quartz job in Grails dynamically?I'd like to have a cron style processing routine check for work at 60 second intervals, but have it consult a database parameter for a new time interval. If it's different than 60 seconds, I'd like the cron schedule changed to the new value. That way I can dynamically tune the frequency without restarting the application by updating the database value. So far I've only been able to add more cron type triggers, but not replace the existing trigger.
Q: How to run a Quartz job in a specific timezone?A Quartz job can be run in a specific timezone by adding a timeZone Parameter to the jobs trigger. Example:
static triggers = {
// daily at 10pm PST
cron name: 'cronPstTrigger', cronExpression: "0 0 22 * * ?", timeZone: TimeZone.getTimeZone("PST")
}
Last updated by admin 3 years ago