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

Weekly statistics never catch up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.4
    • Fix Version/s: 1.9
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I've been reporting bugs with very inaccurate "cause of the bug" ponderings, but here goes another one:

      Our biggest Moodle never runs weekly and monthly statistics. It stopped doing those in November. It does all of the daily statistics though. However, in mdl_config the values for statslastweekly and statslastmonthly are very recent!

      Looking at the code: stats_cron_weekly() does set_config('statslastweekly',time()); before is starts any processing. If it then runs out of time after just one minute, it still "reports" that the weekly stats were run "just five minutes ago". Then, if I'm not incorrect, next time the check for
      if (isset($CFG->statslastweekly) and ((time() - (7*24*60*60)) <= $CFG->statslastweekly))
      says that "no, it hasn't been a week since this was last run".

      I'm not sure why it never progresses, but the logic of "we got this far" seems to be incorrect...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              samulik Samuli Karevaara
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08