(Quick Reference)

cron

Purpose

A cron trigger that executes based on the defined cron expression

Examples

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