Nasty Race Condition
ayushr2 opened this issue · comments
Ayush Ranjan commented
Just realized that when we truly have this distributed and two jobs finish at the same time by two different graders and they both send a job update message, there might be a race condition in updating the grading run object in the database. Ref. We could either lock this or use mongo features like "$decrement" etc to do our job.
Ayush Ranjan commented
Another race condition here when graders are using multiple threads to grade many assignments simultaneously.
Ayush Ranjan commented
Resolved in #15