-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.10, 3.11.3, 4.0, 4.3.8, 4.5
-
MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_403_STABLE, MOODLE_405_STABLE
-
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...