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

catch duplicate reference error in diff task #212

Open christianp opened 2 years ago

christianp commented 2 years ago

I think this is a race condition: two separate huey processes might try to diff the same attempt, causing a violation of the uniqueness constraint.

I think that re-fetching every element before diffing it would be slow, so maybe this error should just be caught and the task should ignore that attempt.