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

Completions Task: Optimization by Splitting

XMLWordPrintable

    • MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • MDL-50287-master
    • Easy
    • Hide
      1. Run scheduled tasks manually and ensure they complete succesfully:
        #Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task
        completion_daily_task

        #Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task
        completion_regular_task
      Show
      Run scheduled tasks manually and ensure they complete succesfully: #Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task completion_daily_task #Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task completion_regular_task

      The current completion cron has three parts.
      The first two take less than a minute (usually) to run, this is what manages the completions themselves.

      The third part is the mark aspect. This marks users onto a course by checking the enrollment types. This process is very slow and can take up to one hour, this can cause sites to slow down or even stop functioning all together if there is more than one site on the same server.

      The proposed solution to this would be to split the completion cron out into two crons one recommended to run daily (the slow one) and one to run every minute (the fast one).

      This ensures that the completion cron can mark completions within a minute without causing sites slowdown.

      This issue affects previous versions of Moodle but we are looking to improve this for Moodle 3.0.

      Once fixed we would expect the completions to update minutely without issue and for the users to still be enrolled once daily.

            joshwillcock Josh Willcock
            joshwillcock Josh Willcock
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days, 1 hour
                2d 1h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified

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