[
https://issues.apache.org/jira/browse/SLING-3173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795525#comment-13795525
]
Carsten Ziegeler commented on SLING-3173:
-----------------------------------------
I totally agree that there are some good use cases for custom queues -
although I'm not 100% convinced if the timed window could be done by a queue -
as this is a combination of execution (queue) and scheduling: you schedule
something like a maintenance task daily or monthly etc and let it execute by a
queue in a specific time window. So for this you would add the daily tasks once
per day, the monthly tasks once per month and the time window queue would
execute them during the specific time only.
Unfortunately I fear that custom queues are harder to implement because of the
way the implementation works today, so I totally agree that we shouldn't do
this for the next release :)
> Job Engine: Support custome queue implementations
> -------------------------------------------------
>
> Key: SLING-3173
> URL: https://issues.apache.org/jira/browse/SLING-3173
> Project: Sling
> Issue Type: New Feature
> Components: Extensions
> Reporter: Stefan Seifert
> Priority: Minor
>
> follow-up from SLING-3028
> Q: is it possible to add own queue implementations? does not seem so, its
> using a hardcoded enum. in our own job implementation we have e.g. a "time
> window queue" think, which queues up jobs and executes them only in defined
> time windows where low user traffic is expected on the instance.
> A: Own queue implementations: these are not possible at all. For your use
> case of a time window queue, you maybe could use the scheduled jobs? If you
> think it's worth exploring this, please create a separate issue.
--
This message was sent by Atlassian JIRA
(v6.1#6144)