📜  grails 3 cron 作业 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:46.504000             🧑  作者: Mango

代码示例1
package asia.grails.sample

class ArchiveTablesJob {
    static triggers = {
      simple repeatInterval: 5000l // execute job once in 5 seconds
    }
    def execute() {
        // execute job
    }
}