From 6312f143f5b047725cb368d55928ffdd9f2a29fb Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 16 Oct 2023 16:38:23 -0500 Subject: [PATCH] Don't send error on judge disconnect --- judge/bridge/judge_handler.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/judge/bridge/judge_handler.py b/judge/bridge/judge_handler.py index be21ebe..8be69ea 100644 --- a/judge/bridge/judge_handler.py +++ b/judge/bridge/judge_handler.py @@ -93,13 +93,6 @@ class JudgeHandler(ZlibPacketHandler): def on_disconnect(self): self._stop_ping.set() - if self._working: - logger.error( - "Judge %s disconnected while handling submission %s", - self.name, - self._working, - ) - self.judges.remove(self) if self.name is not None: self._disconnected() logger.info( @@ -118,16 +111,6 @@ class JudgeHandler(ZlibPacketHandler): None, 0, ) - # Submission.objects.filter(id=self._working).update( - # status="IE", result="IE", error="" - # ) - # json_log.error( - # self._make_json_log( - # sub=self._working, - # action="close", - # info="IE due to shutdown on grading", - # ) - # ) def _authenticate(self, id, key): try: