Skip to content

Commit

Permalink
[Updater] Small adjustements to individual student schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingStar91 committed Mar 6, 2024
1 parent a606117 commit 678cd07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/backend/src/services/sisUpdaterService.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const updateStudentsIndividually = async () => {
},
})
const uniqueStudents = [...new Set(studentNumbers.map(s => s.studentnumber))]
const chunkSize = 1000
const chunkSize = 4000
for (let from = 0; from < uniqueStudents.length - chunkSize; from += chunkSize) {
await client.post(
'v1/students',
Expand Down
3 changes: 1 addition & 2 deletions updater/sis-updater-scheduler/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ app.post('/v1/students', async (req, res) => {
const individualMode = req.body.individualMode
const studentnumbers = req.body.studentnumbers.map(n => (n[0] === '0' ? n : `0${n}`))

logger.info(JSON.stringify(studentnumbers))
logger.info('Scheduling studentnumbers')
logger.info(`Scheduling ${studentnumbers.length} custom studentnumbers ${individualMode ? 'individually' : ''}`)

await scheduleByStudentNumbers(studentnumbers, individualMode)
res.locals.msg('Scheduled studentnumbers')
Expand Down

0 comments on commit 678cd07

Please sign in to comment.