numbas / numbas-lti-provider

An LTI tool provider to run Numbas exams
https://docs.numbas.org.uk/lti/en/latest/
Other
11 stars 12 forks source link

Don't save `cmi.score.scaled` too often #272

Open christianp opened 1 year ago

christianp commented 1 year ago

When all of the parts of a question are submitted at once, Numbas sets the SCORM key cmi.score.scaled several times in quick succession.

When these get to the LTI server, they each trigger a task to save the cached scaled_score on the Attempt model, and somehow they can get out of order.

I think it's reasonable to group these elements, and only send something like one per second at most.