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

locktimeout exception in scheduled tasks is not very informative/exceptional

    XMLWordPrintable

Details

    • MOODLE_27_STABLE, MOODLE_28_STABLE

    Description

      We're getting lots of lock timeout exceptions on moodle.org cron:

      $ grep locktimeout moodle_cron.log | wc -l
      194
      

      It looks like its just the general '1 minute' lock -

       grep -A3 locktimeout moodle_cron.log
      [2014-10-28 06:59:13.034470340+08:00] Error code: locktimeout
      [2014-10-28 06:59:13.035358522+08:00] * line 476 of /lib/classes/task/manager.php: moodle_exception thrown
      [2014-10-28 06:59:13.036230663+08:00] * line 66 of /lib/cronlib.php: call to coretaskmanager::get_next_scheduled_task()
      [2014-10-28 06:59:13.037088407+08:00] * line 61 of /admin/cli/cron.php: call to cron_run()
      --
      [2014-10-28 07:02:13.052908571+08:00] Error code: locktimeout
      [2014-10-28 07:02:13.053541452+08:00] * line 476 of /lib/classes/task/manager.php: moodle_exception thrown
      [2014-10-28 07:02:13.054185565+08:00] * line 66 of /lib/cronlib.php: call to coretaskmanager::get_next_scheduled_task()
      [2014-10-28 07:02:13.054889632+08:00] * line 61 of /admin/cli/cron.php: call to cron_run()
      

      So perhaps this shouldn't be an exception?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              poltawski Dan Poltawski
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              12 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated: