From 93858944d8f2ae09bcd16be25fd4f3516eaaf305 Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 18 Jul 2024 07:23:42 +0200 Subject: [PATCH] SEBSERV-560 only master needs to update groups --- .../session/impl/proctoring/ScreenProctoringServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java index 7aef6f5c..f7d3d549 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/session/impl/proctoring/ScreenProctoringServiceImpl.java @@ -247,6 +247,10 @@ public class ScreenProctoringServiceImpl implements ScreenProctoringService { public void updateActiveGroups() { try { + if (!webserviceInfo.isMaster()) { + return; + } + if (screenProctoringGroupDAO.hasActiveGroups()) { screenProctoringAPIBinding .getActiveGroupSessionCounts()