Skip to content

Course data calculation doesn't end since 9.2.0 #3087

Description

@brianhogg
  • Pass max_pages to the processes
  • Remove course data locks on update of LifterLMS (one time)

Reproduction Steps

  1. Enroll a student in a course
  2. Wait a few minutes (or longer for a very large course) for the data calculations like average grade and progress to update

Expected Behavior

Course data calculation ends

Actual Behavior

  • Total students is updated since it is set from the separate COUNT(*) query right away, but average grades/progress/etc do not update
  • Course data lock appears and is never removed under LifterLMS > Status > Tools & Utilities, "Delete course data locks"

Technical Information

The "is last page" calculation wasn't updated to use the count(*) query, but the "found rows" data was removed. So max_pages is set to 0 and thus will never match the current page.

We can pass in the max pages so the processing ends.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions