Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11831

Allow setting job properties for custom job state

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Event 4.3.8
    • Event 4.3.12, Event API 1.0.4
    • Event
    • None

    Description

      The JobExecutionContext currently allows updating Job progress info and the progress log but it doesn't allow storing of custom properties.  The reason we would want to support custom properties is to allow storing resume information.

      For example, let's say we have a job where we are moving multiple resources around in a clustered environment with many sling instances pointing to the same JCR repository (for example Oak MongoMK).  If the instance that is running the move job crashes in the middle of the job execution we would want some information stored so the job can be resumed on another node.

      To solve this issue, we can introduce a setProperty method to the JobExecutionContext.

      This method would allow us to save some state information for use in case the job is resumed on another node.

      Attachments

        Activity

          People

            dklco Dan Klco
            akhoury Andrew Khoury
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: