views:

390

answers:

2

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

+1  A: 

I'm fairly certain this functionality does not exist in the current version of Quartz. However there is a patch that implements job cancellation and rescheduling, so it seems plausible that it will be added to the official release in the (near?) future. See this email thread for details. If you want to try the patch yourself, it can be found on the bug tracker.

ire_and_curses
+1  A: 

as a workaround, you could make the job check a configuration option, or query the DB, and just not do its thing if its not supposed to.

Chii