Disabling Quartz in Grails

I am using the Quartz plugin in Grails. Is there a configuration I can use to disable the job without commenting out or deleting the entire file?

+2


source to share


3 answers


I'm pretty sure this functionality doesn't exist in the current version of Quartz. However, there is a patch that implements work undo and restructuring, so it seems plausible that it will be added to the official release in the near future. See message flow for details . If you want to try the patch yourself, you can find it in the bug tracker .



+1


source


As a workaround, you can force the job to check a config parameter or query the DB and simply not do its job if not intended.



+2


source


I don't know how relevant this is, but how do I add a return statement as the first line in the execute () method?

+1


source







All Articles