diff --git a/judgels-backends/judgels-server-app/src/main/java/judgels/jerahmeel/submission/programming/SubmissionResource.java b/judgels-backends/judgels-server-app/src/main/java/judgels/jerahmeel/submission/programming/SubmissionResource.java index c41e317b7..4e2e6cb95 100644 --- a/judgels-backends/judgels-server-app/src/main/java/judgels/jerahmeel/submission/programming/SubmissionResource.java +++ b/judgels-backends/judgels-server-app/src/main/java/judgels/jerahmeel/submission/programming/SubmissionResource.java @@ -287,7 +287,7 @@ public void regradeSubmission( @POST @Path("/regrade") - @UnitOfWork + @UnitOfWork(transactional = false) public void regradeSubmissions( @HeaderParam(AUTHORIZATION) AuthHeader authHeader, @QueryParam("containerJid") Optional containerJid, diff --git a/judgels-backends/judgels-server-app/src/main/java/judgels/uriel/contest/scoreboard/ContestScoreboardPoller.java b/judgels-backends/judgels-server-app/src/main/java/judgels/uriel/contest/scoreboard/ContestScoreboardPoller.java index 40ba0733a..975fc4290 100644 --- a/judgels-backends/judgels-server-app/src/main/java/judgels/uriel/contest/scoreboard/ContestScoreboardPoller.java +++ b/judgels-backends/judgels-server-app/src/main/java/judgels/uriel/contest/scoreboard/ContestScoreboardPoller.java @@ -30,7 +30,7 @@ public ContestScoreboardPoller( } @Override - @UnitOfWork(readOnly = true) + @UnitOfWork(readOnly = true, transactional = false) public void run() { try { for (Contest contest : contestStore.getRunningContests()) {