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

upgrade_set_timeout times out for CLI scripts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      for devs:
      1/ add some sleep(600) + echo to upgrade from 1.9->2.2
      2/ when the upgrade goes to sleep access site using different browser, you might get some bogus errors, close the other browser
      3/ it is expected that the cli upgrade continues after the sleep

      Show
      for devs: 1/ add some sleep(600) + echo to upgrade from 1.9->2.2 2/ when the upgrade goes to sleep access site using different browser, you might get some bogus errors, close the other browser 3/ it is expected that the cli upgrade continues after the sleep
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w18_MDL-32607_m23_upgrade2

      Description

      MDL-31553 added a fix to the upgrade_set_timeout function to prevent it timing out the script when running a command-line upgrade, however there is still code which kills the script if it takes longer to run than has been estimated. (This has happened to me in a test upgrade, but unfortunately I no longer have the log to give more details)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12