| 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} |