grailsquartz-schedulergrails-plugingrails-2.5

Quartz plugin for Grails


I'm testing quartz plugin with Grails 2.5.1. Below is the Job code:

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

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

As per my understanding from the documentation , Hi is supposed to be printed 11 times, but actually, it's only printed 2 times. Am I missing something?


Solution

  • Try using println (new Date()) and see what happens.

    You'll see that since the console output was duplicated beyond the second output that the console quietly filtered it out.

    The job is actually running as expected.