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

Cohort enrolment needs to be handled asynchronously

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.9.10, 3.11.3, 4.0
    • 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.

      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...

            Unassigned Unassigned
            andrew_dc_hancox Andrew Hancox
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

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