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

Carsten Ziegeler commented on SLING-5831:
-----------------------------------------

[~chetanm] You should do three things:
1. Create a named thread pool for your tasks using the thread pool module
2. Configure Sling's QuartzScheduler with the new property allowedPoolNames and 
add the name from 1. to that configuration
3. In your code, add the new property "scheduler.threadPool" with the name of 
the pool created in 1 

> Support different thread pools for scheduled tasks
> --------------------------------------------------
>
>                 Key: SLING-5831
>                 URL: https://issues.apache.org/jira/browse/SLING-5831
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Commons Scheduler 2.4.16
>
>
> Right now the scheduler uses a single thread pool. While this thread pool can 
> be configured, it means that all scheduled tasks share this pool. In order to 
> prioratize different tasks over others and avoid blocking important jobs 
> through unimportant once, we could maybe add a configuration property to 
> select a thread pool name.
> If a pool with that name exists, it's used - if not the default is used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to