Recommendations for cron-like scheduling in Grails: run method once every hour

Posted by knorv on Stack Overflow See other posts from Stack Overflow or by knorv
Published on 2010-04-13T23:44:23Z Indexed on 2010/04/13 23:53 UTC
Read the original article Hit count: 173

Filed under:

Suppose I want to run the following method foo() once every hour in Grails:

class FooController {
  public static void foo() {
    // stuff that needs to be done once every hour (at *:00)
  }
}

What is the easiest/recommended way to set up such cron-like scheduling in Grails?

© Stack Overflow or respective owner

Related posts about grails