Skip to content

Commit

Permalink
fix: slow down request
Browse files Browse the repository at this point in the history
  • Loading branch information
th4tkh13m committed Mar 29, 2024
1 parent 8887b24 commit 64792af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dmoj/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ def test_case_status_packet(self, position: int, result: Result):
with self._testcase_queue_lock:
self._testcase_queue.append((position, result))

# We slow down the request because the server can't handle the load
time.sleep(1)

def compile_error_packet(self, message: str):
log.debug('Compile error: %d', self.judge.current_submission.id)
self.fallback = 4
Expand Down

0 comments on commit 64792af

Please sign in to comment.