Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9039 CE tasks must not be executed more than twice
  3. SONAR-9040

do not try and execute tasks which have already been executed twice

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: Compute Engine
    • Labels:

      Description

      Workers should ignore tasks which already been run twice. To achieve this, a column execute_count is added to CE task tables which will be incremented each time a task's status is changed to "IN_PROGRESS"

      Add execution_count column to CE_QUEUE and CE_ACTIVITY tables as a NON_NULL INTEGER.
      The value of this column is 0 when a new line is inserted.

      in CE_QUEUE:

      • a newly created task (ie. with status "PENDING") has execution_count = 0
      • a task "IN PROGRESS" always has a execution_count > 0
      • a task "PENDING" may have execution_count > 0 if it has already been executed at least once

      in CE_ACTIVITY:

      • tasks created in this table prior to this ticket have execution_count = 0
      • a "CANCELED" task may have execution_count > 0
      • tasks with status "FAILED" and "SUCCESS" always has execution_count > 0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              sebastien.lesaint Sebastien Lesaint
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: