You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Praful Vaishnav (JIRA)" <ji...@apache.org> on 2017/10/23 10:02:00 UTC
[jira] [Comment Edited] (SLING-7197) API support to get completed
Scheduled Job
[ https://issues.apache.org/jira/browse/SLING-7197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214911#comment-16214911 ]
Praful Vaishnav edited comment on SLING-7197 at 10/23/17 10:01 AM:
-------------------------------------------------------------------
[~cziegeler] Can you please look into this. One solution would be to modify JobManager.findJobs API to search for jobs of type slingevent:TimedEvent
was (Author: praful.vaishnav):
[~cziegeler] Can you please look into this.
> API support to get completed Scheduled Job
> ------------------------------------------
>
> Key: SLING-7197
> URL: https://issues.apache.org/jira/browse/SLING-7197
> Project: Sling
> Issue Type: Bug
> Components: API
> Affects Versions: Event 4.2.8
> Reporter: Praful Vaishnav
>
> Scheuled jobs are created as _slingevent:TimedEvent_ under path _/var/eventing/scheduled-jobs_. When these jobs execution are complete, they are moved under path `/var/eventing/jobs/finished`. Prior to completion, we can get scheduled jobs using [API JobManager.getScheduledJobs| https://sling.apache.org/apidocs/sling7/org/apache/sling/event/jobs/JobManager.html#getScheduledJobs-java.lang.String-long-java.util.Map...- ]. But I could not find any API to get scheduled jobs which are completed. [API JobManager.findJobs| https://sling.apache.org/apidocs/sling7/org/apache/sling/event/jobs/JobManager.html#findJobs-org.apache.sling.event.jobs.JobManager.QueryType-java.lang.String-long-java.util.Map...-] returns only jobs of type _slingevent:Job_
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)