How can I make sure that a cron scheduled Quartz2 job (http://grails.org/plugin/quartz2) is only fired once when my Grails 2 app is running with multiple instances on CloudFoundry?
How can I make sure that a cron scheduled Quartz2 job (http://grails.org/plugin/quartz2) is only
Share
Basically you need a clustered Quartz scheduler. The documentation nicely describes how to configure the cluster and
JDBC-JobStore. You will need a database that all instances can access and synchronize.According to the plugin documentation you should use
Config.groovyto configure Quartz scheduler as it completely replacesquartz.properties.