Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make manage submissions rejudging idempotent; fixes #1009 #1127

Merged
merged 3 commits into from
Oct 21, 2019
Merged

Conversation

Xyene
Copy link
Member

@Xyene Xyene commented Oct 21, 2019

No description provided.

@Xyene Xyene requested a review from quantum5 October 21, 2019 17:39
@@ -99,12 +99,14 @@ def check_priority(self, priority):
def judge(self, id, problem, language, source, priority):
with self.lock:
if id in self.submission_map or id in self.node_map:
logger.warning('Already judging? %d', id)
# Already judging, don't queue again. This can happen during batch rejudges, rejudges should be
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this warning because despite filtering earlier (which is useful for showing users accurate submission counts), we can still race to this point.

@Xyene Xyene merged commit d9b97ac into master Oct 21, 2019
@Xyene Xyene deleted the fix-1009 branch October 21, 2019 21:32
malbareda pushed a commit to malbareda/JOEL-web that referenced this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants