in src/main/groovy/quartz/QuartzGrailsPlugin.groovy [349:362]
void onShutdown(Map<String, Object> event) {
def pluginEnabled = grailsApplication.config.getProperty('quartz.pluginEnabled')?.toBoolean()
if (pluginEnabled == null) {
pluginEnabled = true
}
if (pluginEnabled) {
Boolean waitForJobsToCompleteOnShutdown = grailsApplication.config.getProperty('quartz.waitForJobsToCompleteOnShutdown')?.toBoolean()
if (waitForJobsToCompleteOnShutdown == null) {
waitForJobsToCompleteOnShutdown = true
}
applicationContext.quartzScheduler.shutdown(waitForJobsToCompleteOnShutdown)
}
}