[
https://issues.apache.org/jira/browse/SLING-5512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144327#comment-15144327
]
Carsten Ziegeler commented on SLING-5512:
-----------------------------------------
I'm not sure about these operations - even findJobs is already borderline. The
problem I see is that the more functionality we add, the more we have to
support in the future. Let's assume we move to a totally different queuing
mechanism which doesn't provide this functionality, then having this in the API
gets in the way.
The other problem is, right now, we neither have a way to count or skip when
using the Sling Resource API
> Improve JobManager.findJobs querying by supporting skip items
> -------------------------------------------------------------
>
> Key: SLING-5512
> URL: https://issues.apache.org/jira/browse/SLING-5512
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Marius Petria
>
> Currently findJobs API only accepts a limit parameter to restrict the size of
> the retrieved collection. In order to better support paged views of jobs we
> should also support a skip parameter.
> Also it would be very useful to have a countJobs API aswell.
> [1]
> https://sling.apache.org/apidocs/sling8/org/apache/sling/event/jobs/JobManager.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)