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

JobEventHandler: jobs in a waiting state won't be waked up anymore if job.getProperty(EventUtil.PROPERTY_JOB_QUEUE_NAME) != null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Event 2.3.0
    • Event 2.4.0
    • Extensions
    • None

    Description

      it may happen that a job (before execution) is put in a waiting state because the maximum parallel job count was reached.
      unfortunately, that waiting job won't be notified anymore in case the job is bound to a defined job queue:

      1377 if ( job.getProperty(EventUtil.PROPERTY_JOB_QUEUE_NAME) == null )

      { 1378 this.parallelJobCount--; 1379 this.backgroundLock.notify(); 1380 }

      couldn't one simply remove the "job.getProperty(EventUtil.PROPERTY_JOB_QUEUE_NAME) == null" check or is there a reason why this check got added?

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            pkoch Philipp Koch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: