Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10592

Ability to pause and resume Compute Engine workers

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2
    • Component/s: Compute Engine
    • Labels:
      None

      Description

      Compute Engine workers should not pop the queue of tasks when it has been flagged as paused.
      That implies creation of web services:

      • POST api/ce/pause triggers the pause and returns immediately. The information is stored in table internal_properties. Workers stop pop-ing the queue. The in-progress tasks are finished and are not canceled. Pending tasks remain in queue.
      • GET api/ce/info returns the field workersPauseStatus. Values are "PAUSING", "PAUSED" and "RESUMED" (default).
      • POST api/ce/resume triggers the resume and returns immediately.

      The status should also be available in api/system/info and displayed in System Info page.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simon.brandhof Simon Brandhof
                Reporter:
                simon.brandhof Simon Brandhof
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: