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

Quiz statistics scheduled task gives no useful info about failures, making it impossible to investigate bugs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0.6, 4.1.1
    • 4.0.5, 4.1
    • Quiz
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76649_401
    • Hide

      You need a Moodle site with a reasonable number of quizzes with student attempts.

      (If you don't already have that, you will need to:

      1. Make one or more courses.
      2. In each course, make one or more quizzes, with a few questions.
      3. Enrol a few students in each course.
      4. Attempt each quiz with each student.
        )

      Once this change is applied, you need to wait for the quiz_statistics\task\recalculate task to run (you might be able to use 'Run now' on the scheduled tasks page if you have it set up. See https://docs.moodle.org/36/en/Scheduled_tasks#Running_individual_tasks.)

      Once the task has run, view the task logs for that run, and check that they seem informative. (There is an example of the expected output in the comments below.)

      Show
      You need a Moodle site with a reasonable number of quizzes with student attempts. (If you don't already have that, you will need to: Make one or more courses. In each course, make one or more quizzes, with a few questions. Enrol a few students in each course. Attempt each quiz with each student. ) Once this change is applied, you need to wait for the quiz_statistics\task\recalculate task to run (you might be able to use 'Run now' on the scheduled tasks page if you have it set up. See https://docs.moodle.org/36/en/Scheduled_tasks#Running_individual_tasks .) Once the task has run, view the task logs for that run, and check that they seem informative. (There is an example of the expected output in the comments below.)

      At the moment, the quiz_statistics\task\recalculate scheduled task is failing on our system, and all I see in the task logs is:

      Execute scheduled task: Re-calculate question statistics (quiz_statistics\task\recalculate)
      ... started 08:22:33. Current memory use 18.1 MB.
      

      This is not very helpful, so I am going to make this task output more information about what it is doing, so when a problem occurs, it is easier to know where to start debugging.

        1. 400_1.png
          400_1.png
          148 kB
        2. 400.png
          400.png
          133 kB
        3. 401_1.png
          401_1.png
          170 kB
        4. 401.png
          401.png
          145 kB
        5. master.png
          master.png
          88 kB

            timhunt Tim Hunt
            timhunt Tim Hunt
            Mahmoud Kassaei Mahmoud Kassaei
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 42 minutes
                5h 42m

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