Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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
    }
}
Source by grails.asia #
 
PREVIOUS NEXT
Tagged: #grails #cron #jobs
ADD COMMENT
Topic
Name
3+3 =