[
https://issues.apache.org/jira/browse/SLING-7197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16217675#comment-16217675
]
Carsten Ziegeler commented on SLING-7197:
-----------------------------------------
I don't want to introduce a new API as I don't think this is really necessary,
but I haven't looked into this in detail and maybe it makes sense.
Changing the type should be fine, as the way things are stored is an
implementation detail. Consumer querying directly the repository are relying on
internals and we don't provide any guarantee. That's like using reflection to
call private/protected methods
> 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)