illinois-cs241 / broadway-api

This is the old repo for Broadway API. Please see the new repo for newest version of Broadway https://github.com/illinois-cs241/broadway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nasty Race Condition

ayushr2 opened this issue · comments

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.

Another race condition here when graders are using multiple threads to grade many assignments simultaneously.

Resolved in #15