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

scheduled tasks locking error causes upgrade to fail

XMLWordPrintable

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-47529-master
    • Hide
      1. Install a new instance of Moodle
      2. Confirm that scheduled tasks are properly created in the database
      3. Add a new dummy task (will require a new class, just copy an existing one and change the name)
      4. Change the CRON setting of an existing task DEFINITION (in db/tasks.php) (note its existing entry ID in the DB)
      5. Customise an existing task's settings (admin tool to customise them) (note its existing entry ID in the DB)
        • Change all the fields, and confirm that it worked
        • Then update that customised task definition (db/tasks.php) with values that differ to the ones you have set
      6. Bump version.php (or the version.php belonging to any plugins you may have altered in this test) and upgrade Moodle
      7. Make sure that the new task was added, and its next run value is accurate
      8. Make sure that the existing task was updated, and its next run value is accurate
      9. Make sure that the customised task was NOT updated, and its next run value is accurate
      Show
      Install a new instance of Moodle Confirm that scheduled tasks are properly created in the database Add a new dummy task (will require a new class, just copy an existing one and change the name) Change the CRON setting of an existing task DEFINITION (in db/tasks.php) (note its existing entry ID in the DB) Customise an existing task's settings (admin tool to customise them) (note its existing entry ID in the DB) Change all the fields, and confirm that it worked Then update that customised task definition (db/tasks.php) with values that differ to the ones you have set Bump version.php (or the version.php belonging to any plugins you may have altered in this test) and upgrade Moodle Make sure that the new task was added, and its next run value is accurate Make sure that the existing task was updated, and its next run value is accurate Make sure that the customised task was NOT updated, and its next run value is accurate
    • Team A Sprint 1, Team '; drop tables Sprint 2, Team ';drop tables Sprint 3
    • Small

      Upgrading from 2.6.x to 2.7.1 I got an error more or less like this
      https://www.dropbox.com/s/kp6417agqpbmk6x/Captura%20de%20pantalla%202014-09-25%2013.31.11.png?dl=0
      I ignored it and the upgrade finished (apparently) well
      But in the Notifications page it started to appear the "no cron script run in the last 24 hs." message
      If i run the script manually it reads like this
      Server Time: Fri, 03 Oct 2014 16:28:36 -0500

      Cron script completed correctly
      Cron completed at 16:28:36. Memory used 16MB.
      Execution took 0.01571 seconds

      This issue was discussed here
      https://moodle.org/mod/forum/discuss.php?d=261090
      And apparently it has to do with a hard limit of simultaneously open files in Siteground hosting plans. My account plan has a 40 files limit.

      When looking at scheduled tasks, it shows this
      https://moodle.org/pluginfile.php/133/mod_forum/attachment/1133805/Screen%20Shot%202014-06-06%20at%203.53.25%20PM.png

      Please provide a way to reconstruct the shceduled task list without reinstalling. Sorry if the request format isn't correct. this is my first bug report.

            fred Frédéric Massart
            osvaldo.pinco Osvaldo Pinco
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.