Sling
  1. Sling
  2. SLING-2979

Add support for running scheduled task on specific instances

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Commons Scheduler 2.4.0
    • Component/s: Commons
    • Labels:
      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.

        Issue Links

          Activity

          Carsten Ziegeler created issue -
          Carsten Ziegeler made changes -
          Field Original Value New Value
          Summary Scheduled task should only run on leader Add support for running scheduled task only on the leader
          Carsten Ziegeler made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Carsten Ziegeler made changes -
          Summary Add support for running scheduled task only on the leader Add support for running scheduled task on specific instances
          Carsten Ziegeler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Konrad Windszus made changes -
          Link This issue is related to SLING-3358 [ SLING-3358 ]
          Chetan Mehrotra made changes -
          Link This issue is related to SLING-5387 [ SLING-5387 ]

            People

            • Assignee:
              Carsten Ziegeler
              Reporter:
              Carsten Ziegeler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development