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

Webhooks are called asynchronously

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: Webhook
    • Labels:
      None

      Description

      When a change is done on an issue of a short living branch and if configuration is appropriate, webhooks of the current project and/or defined at global level are called.

      This is currently done synchronously from the HTTP request's thread.
      This works, but the time taken by the HTTP call(s) to notify webhooks is added to the time the
      HTTP request takes to be processed by SQ's WebServer.

      If the remote server called though HTTP is slow, the HTTP request will be slowered by as much.

      Therefor, webhook calls must be made asynchronously.

      In addition, code added to support asynchronously called webhooks must be designed so that a privileged plugin (or another piece of SQ's code) can also have some other code be run asynchronously. The scope is currently limited to the PR decoration feature.

        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: