Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
With the new topology api we have support for leader election. In many cases scheduled tasks should only run on a single instance in a cluster. So far this can only be done by manually adding the task through the Scheduler interface but not with the whiteboard support.
We should add a new property scheduler.leaderonly which defaults to false but can be set to true. IN this case the task is only started on the leader.
Attachments
Issue Links
- is related to
-
SLING-3358 Add support for running scheduled tasks only on instances with a specific runmode set
- Resolved
-
SLING-5387 Provide support for running singleton jobs on non leader cluster nodes also
- Closed