Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-61687

Include a verbose option for the CLI upgrade script

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.6
    • Fix Version/s: None
    • Component/s: Installation
    • Labels:
      None
    • Affected Branches:
      MOODLE_32_STABLE

      Description

      We are experiencing some performance issues when running upgrades, either from the web frontend or the /admin/cli/upgrade.php script. It is hard to diagnose exactly which part of the script is causing the performance issues, as the script only shows output once a plugin has been installed (or failed to install).

      I propose a verbose option is added to upgrade.php (such as --verbose), which would display some basic debug and performance related output at various points throughout the script, e.g.,:

      • Purging caches...
      • Caches purged in 600ms
      • Running core upgrade...
      • Core upgrade run in 1400ms
      • Running non-core upgrade
      • Non-core upgrade run in 2300ms
      • Etc,

      I will likely end up adding this in to our Moodle installation anyway, so that we can diagnose our performance issues. Happy to contribute what I write.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jbriggscmet James
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: