quartz plugin and interrupting jobs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

quartz plugin and interrupting jobs

Gregory Bond
i've been playing with quartz plugin v0.4.2 (the latest) and grails v1.2.1 and i've been unable to interrupt an executing quartz job

the quartz plugin JobManagerService includes an interruptJob() method which i've i've had no luck getting to work for a statically scheduled job - i've defined an interrupt() method for my job but when i invoke the interruptJob() the job's interrupt() method isn't invoked and no exception is thrown 

i also tried a more direct approach: getting the scheduled job from its job context and then directly calling interrupt() on the job but that results in the following exception:

groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.interrupt() is applicable for argument types: () values: []

can anyone share how they've successfully interrupted tasks using the quartz plugin?

thanks

greg
Reply | Threaded
Open this post in threaded view
|

Re: quartz plugin and interrupting jobs

Sergey Nebolsin
Hi, Gregory.

Unfortunately, interrupting of jobs is not currently supported by the plugin. JobManagerService#interrupt() was added by mistake, without implementing other aspects of this feature (such as using InterruptableJob Quartz interface for Grails jobs).

Please raise a feature request in the plugin's Jira for interruptable jobs support.

Cheers

On Thu, Mar 18, 2010 at 19:53, Gregory Bond <[hidden email]> wrote:
i've been playing with quartz plugin v0.4.2 (the latest) and grails v1.2.1 and i've been unable to interrupt an executing quartz job

the quartz plugin JobManagerService includes an interruptJob() method which i've i've had no luck getting to work for a statically scheduled job - i've defined an interrupt() method for my job but when i invoke the interruptJob() the job's interrupt() method isn't invoked and no exception is thrown 

i also tried a more direct approach: getting the scheduled job from its job context and then directly calling interrupt() on the job but that results in the following exception:

groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.interrupt() is applicable for argument types: () values: []

can anyone share how they've successfully interrupted tasks using the quartz plugin?

thanks

greg



--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru
Reply | Threaded
Open this post in threaded view
|

Re: quartz plugin and interrupting jobs

Gregory Bond
yes - i figured that out this afternoon - i found the problem and fixed the plugin so that it works now - i'll add a jira feature request with my code changes - thanks for the response

greg

On Thu, Mar 18, 2010 at 5:18 PM, Sergey Nebolsin <[hidden email]> wrote:
Hi, Gregory.

Unfortunately, interrupting of jobs is not currently supported by the plugin. JobManagerService#interrupt() was added by mistake, without implementing other aspects of this feature (such as using InterruptableJob Quartz interface for Grails jobs).

Please raise a feature request in the plugin's Jira for interruptable jobs support.

Cheers


On Thu, Mar 18, 2010 at 19:53, Gregory Bond <[hidden email]> wrote:
i've been playing with quartz plugin v0.4.2 (the latest) and grails v1.2.1 and i've been unable to interrupt an executing quartz job

the quartz plugin JobManagerService includes an interruptJob() method which i've i've had no luck getting to work for a statically scheduled job - i've defined an interrupt() method for my job but when i invoke the interruptJob() the job's interrupt() method isn't invoked and no exception is thrown 

i also tried a more direct approach: getting the scheduled job from its job context and then directly calling interrupt() on the job but that results in the following exception:

groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.interrupt() is applicable for argument types: () values: []

can anyone share how they've successfully interrupted tasks using the quartz plugin?

thanks

greg



--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru

Reply | Threaded
Open this post in threaded view
|

Re: quartz plugin and interrupting jobs

Gregory Bond
http://jira.codehaus.org/browse/GRAILS-6052

On Thu, Mar 18, 2010 at 7:18 PM, Gregory Bond <[hidden email]> wrote:
yes - i figured that out this afternoon - i found the problem and fixed the plugin so that it works now - i'll add a jira feature request with my code changes - thanks for the response

greg


On Thu, Mar 18, 2010 at 5:18 PM, Sergey Nebolsin <[hidden email]> wrote:
Hi, Gregory.

Unfortunately, interrupting of jobs is not currently supported by the plugin. JobManagerService#interrupt() was added by mistake, without implementing other aspects of this feature (such as using InterruptableJob Quartz interface for Grails jobs).

Please raise a feature request in the plugin's Jira for interruptable jobs support.

Cheers


On Thu, Mar 18, 2010 at 19:53, Gregory Bond <[hidden email]> wrote:
i've been playing with quartz plugin v0.4.2 (the latest) and grails v1.2.1 and i've been unable to interrupt an executing quartz job

the quartz plugin JobManagerService includes an interruptJob() method which i've i've had no luck getting to work for a statically scheduled job - i've defined an interrupt() method for my job but when i invoke the interruptJob() the job's interrupt() method isn't invoked and no exception is thrown 

i also tried a more direct approach: getting the scheduled job from its job context and then directly calling interrupt() on the job but that results in the following exception:

groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.interrupt() is applicable for argument types: () values: []

can anyone share how they've successfully interrupted tasks using the quartz plugin?

thanks

greg



--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru


Reply | Threaded
Open this post in threaded view
|

Re: quartz plugin and interrupting jobs

Sergey Nebolsin
Thanks!

On Fri, Mar 19, 2010 at 03:18, Gregory Bond <[hidden email]> wrote:
http://jira.codehaus.org/browse/GRAILS-6052


On Thu, Mar 18, 2010 at 7:18 PM, Gregory Bond <[hidden email]> wrote:
yes - i figured that out this afternoon - i found the problem and fixed the plugin so that it works now - i'll add a jira feature request with my code changes - thanks for the response

greg


On Thu, Mar 18, 2010 at 5:18 PM, Sergey Nebolsin <[hidden email]> wrote:
Hi, Gregory.

Unfortunately, interrupting of jobs is not currently supported by the plugin. JobManagerService#interrupt() was added by mistake, without implementing other aspects of this feature (such as using InterruptableJob Quartz interface for Grails jobs).

Please raise a feature request in the plugin's Jira for interruptable jobs support.

Cheers


On Thu, Mar 18, 2010 at 19:53, Gregory Bond <[hidden email]> wrote:
i've been playing with quartz plugin v0.4.2 (the latest) and grails v1.2.1 and i've been unable to interrupt an executing quartz job

the quartz plugin JobManagerService includes an interruptJob() method which i've i've had no luck getting to work for a statically scheduled job - i've defined an interrupt() method for my job but when i invoke the interruptJob() the job's interrupt() method isn't invoked and no exception is thrown 

i also tried a more direct approach: getting the scheduled job from its job context and then directly calling interrupt() on the job but that results in the following exception:

groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.quartz.GrailsJobFactory$GrailsTaskClassJob.interrupt() is applicable for argument types: () values: []

can anyone share how they've successfully interrupted tasks using the quartz plugin?

thanks

greg



--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru





--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru