Skip to content

Commit

Permalink
Reduce batches of enrolments to avoid out of memoryt crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed May 13, 2024
1 parent d962adb commit f77ad5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/updater/updateStudentFeedbackTargets.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ const updateStudentFeedbackTargets = async () => {
getDataSince.setFullYear(getDataSince.getFullYear() - 2)

// This order is important
await mangleData('deleted-enrolments', 10_000, deletedEnrolmentsHandler, getDataSince)
await mangleData('enrolments', 10_000, enrolmentsHandler, getDataSince)
await mangleData('deleted-enrolments', 1_000, deletedEnrolmentsHandler, getDataSince)
await mangleData('enrolments', 1_000, enrolmentsHandler, getDataSince)
}

const updateEnrolmentsOfCourse = async (courseRealisationId) => {
Expand Down

0 comments on commit f77ad5b

Please sign in to comment.