We use quartz for background jobs:

https://github.com/anjlab/anjlab-tapestry-commons/tree/master/anjlab-tapestry-quartz

There you have fine control on both scheduled and currently executing jobs,
i.e. scheduler.getCurrenlyExecutingJobs() and then
scheduler.interrupt(jobKey)


On Fri, Jun 17, 2016 at 2:54 PM, Barry Books <trs...@gmail.com> wrote:

> see
>
>
> https://github.com/trsvax/Jacquard/blob/master/src/main/java/com/trsvax/jacquard/services/JobRunnerTapestry.java
>
>
> https://github.com/trsvax/Jacquard/blob/master/src/main/java/com/trsvax/jacquard/pages/job/JobIndex.java
>
> Jobs are started in the JobRunnerTapestry service and the set of jobs is
> made available via getJobs(). I have not implemented cancel but I think all
> that's needed would be to call the cancel method on the job
>
> On Friday, June 17, 2016, abangkis <abang...@gmail.com> wrote:
>
> > Hai, I'm creating a periodic job on startup from this link.
> >
> >
> >
> http://blog.tapestry5.de/index.php/2011/09/18/scheduling-jobs-with-tapestry/
> >
> > So i wonder how can i stop the job using a button? Since the periodic job
> > is created on startup so the returned PeriodicJob is inaccessible from a
> > page?
> >
> > --
> > http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
> > twitter : @mreunionlabs @abangkis
> > page : https://plus.google.com/104168782385184990771
> >
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to