Grails的Quartz插件

时间:2015-12-27 23:25:51

标签: grails quartz-scheduler grails-plugin grails-2.5

我正在使用Grails 2.5.1测试石英插件。以下是工作代码:

class TestingJob {
    static triggers = {
      simple name: 'mySimpleTrigger', startDelay: 60000, repeatInterval: 1000l, repeatCount: 10
    }

    def execute() {
      println (" Hi ")
    }
}

根据我对documentation的理解,Hi应该打印11次,但实际上,它只打印了2次。我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

尝试使用__call,看看会发生什么。

您将看到,由于控制台输出重复超出控制台安静地将其过滤掉的第二个输出。

该作业实际上正在按预期运行。

相关问题