Problem/Motivation

lms_lms_course_status_delete() loads every status and deletes them directly, this could cause performance/scaling issues where a single course has thousands of participants.

We should probably put the course status deletion into a queue, then the queue runner can delete the course statuses (either loading in chunks and deleting or maybe even a secondary queue).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork lms-3466144

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

catch created an issue. See original summary.

catch’s picture

Title: Add a queue for course status deletion » Add a queue for course/lesson status deletion

Same thing with lessons, probably makes sense to do them in one issue; lms_lesson_status_delete()

claudiu.cristea’s picture

Component: Learning paths » Activities and answers
Assigned: Unassigned » claudiu.cristea

Assigning

claudiu.cristea’s picture

Assigned: claudiu.cristea » Unassigned
Status: Active » Needs review

Ready for review

graber’s picture

Status: Needs review » Needs work

Nice, one suggestion added on the MR. Also opened #3467547: Drop core 10.2 support, make plugins use PHP attributes as a follow-up.

claudiu.cristea’s picture

Status: Needs work » Needs review

Fixed the remarks and added bonus in the Drush command

graber’s picture

Status: Needs review » Fixed

Looks good, thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.