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

rescheduled failed jobs increment queued jobs counter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Event 3.7.6
    • Fix Version/s: Event 4.0.0
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      seen in sling.event 3.7.6

      Description

      When a job fails and is rescheduled (eg in 60sec), then the statistics are skewed:

      • a job start calls stats.addActive which decrements queuedJobs
      • for a failed job, queue.finishJob indirectly calls stats.failedJob which increments queuedJobs again
      • then the job is marked for rescheduling in eg 60sec
      • then upon rescheduling in queue.requeue, indirectly stats.incQueued is called, which increments queuedJobs as well

      With the result that the queuedJobs counter is incremented each time a job fails - even though there are not really more jobs in the queue.

        Attachments

          Activity

            People

            • Assignee:
              cziegeler Carsten Ziegeler
              Reporter:
              stefanegli Stefan Egli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: