grails / grails-quartz

This project provides integration of the Quartz scheduling framework into the Grails Framework
http://grails.org/plugin/quartz
Apache License 2.0
76 stars 90 forks source link

When I set autoStartup to false the job does not work #119

Closed fernando88to closed 9 months ago

fernando88to commented 10 months ago

When I set autoStartup to false the job does not work, if I set it to true the jobs start working again.

Example application

https://github.com/fernando88to/jobissue

fernando88to commented 9 months ago

From what I understand, this is the default behavior, so it is up to the programmer to initialize quartz. I did it this way

package com.example

import org.quartz.impl.StdScheduler

class BootStrap {

    StdScheduler quartzScheduler

    def init = { servletContext ->
        quartzScheduler.start()
    }
    def destroy = {
    }
}