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

Cohort enrolment needs to be handled asynchronously

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.9.10, 3.11.3, 4.0
    • None
    • Cohorts, Enrolments
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Hide

      You have to do the actions separately from each other, then the page won't crash. That means: First enroll global group and then add the global group to a course group. I've tested it with a global group of 465 members.

      Show
      You have to do the actions separately from each other, then the page won't crash. That means: First enroll global group and then add the global group to a course group. I've tested it with a global group of 465 members.

    Description

      When using the cohort enrolment plugin to add a massive cohort to a course (e.g. 17k) actually setting up the enrolments synchronously within the page request doesn't work:

      \enrol_cohort_plugin::add_instance

      I would suggest this should be refactored into an adhoc scheduled task.

      Right now it will normally crash the web page and get mopped up by the existing scheduled task but that's not really ok...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andrew_dc_hancox Andrew Hancox
              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:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: