Quartz job triggering from Config.groovy
I have the following Quartz job running in my application: class ScraperJob { def scraperService static triggers = { cron name: 'scraperTrigger', cronExpression: "0 0 * * * ?" // run every minute } def execute(){ try { scraperService.storing() log.info "${new Date()} - Scraping went smoothly." } catch(IOException) { // Connexion problem log.error "${new Date()} - Method: parsing >> Connexion down or interrupted while parsing !" } catch(SAXException) { // Any SAXParser exception log.error "${new Date()} - Method: parsing >> Parser error." } finally { // if not closed, the application crashes