[ 
https://issues.apache.org/jira/browse/SLING-3139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789190#comment-13789190
 ] 

Carsten Ziegeler commented on SLING-3139:
-----------------------------------------

I've added a first api to the JobManager to create scheduled jobs, to query 
information about scheduled jobs and unschedule them

In addition I've added a method to stop a job, a job executor implementation 
can check periodically the context if it has been stopped and act accordingly.

Not sure if we need a maintenance queue as an ordered queue should do the trick 
as well

> Provide a way to schedule jobs
> ------------------------------
>
>                 Key: SLING-3139
>                 URL: https://issues.apache.org/jira/browse/SLING-3139
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: Extensions Event 3.2.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Extensions Event 3.2.2
>
>
> The current way of scheduling jobs is not very user friendly: it requires to 
> send an event via event admin. We should add a java api to create scheduled 
> job creation.
> In addition, we could add a new queue type: maintenance queue which is an 
> order queue with the difference of running jobs exactly at the point of time 
> when they are created. So a scheduled maintenance job is executed exactly at 
> the scheduled time - unless another job is currently running.
> Apart from starting such jobs, stopping a job would be another nice addition



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to