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

\core\task\stats_cron_task and $CFG->statsruntimestarthour are contradictory

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.7.5, 2.8.3
    • None
    • Administration, Reports
    • MOODLE_27_STABLE, MOODLE_28_STABLE

    Description

      When statistics processing was converted to a scheduled task we did not get rid of statsruntimestarthour setting at the same time. This is confusing for administrators - because altering the scheduled task doesn't really have much of an effect. Hat tip to mrverrall for pointing out this problem.

      I suggest we get rid of statsruntimestarthour and instead move to the proper schedule task mechanism - that would also allow you to run it on demand through CLI.

      Some additional thoughts:

      1. We need to take special care of the scheduled task to move it away from a once every minute schedule. I think we'd need to force a reset of the schedule in upgrade. People may have customised it (for now gain)
      2. I don't necessarily think we need to observe statsruntimestarthour - so long as we document this heavily in the release notes.
      3. We should review the strings to see which ones make sense in scheduled task world

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: