grails 3 cron jobs code example
Example: grails 3 cron jobs
package asia.grails.sample
class ArchiveTablesJob {
static triggers = {
simple repeatInterval: 5000l // execute job once in 5 seconds
}
def execute() {
// execute job
}
}