blob: 34468ff5e33e16953db1edbe39fa14798af11ac0 [file]
h1. cron
h2. Purpose
A cron trigger that executes based on the defined cron expression
h2. Examples
{code}
class MyJob {
static triggers = {
cron name:'cronTrigger', startDelay:10000, cronExpression: '0/6 * 15 * * ?', timeZone: TimeZone.getTimeZone("GMT-8") //timeZone is optional
}
void execute() {
println "Job run!"
}
}
{code}