SEBSERV-266

This commit is contained in:
anhefti 2022-02-01 16:09:26 +01:00
parent fe2d89ca49
commit 5ed368181b
2 changed files with 13 additions and 3 deletions

View file

@ -84,6 +84,8 @@ class ExamSessionControlTask implements DisposableBean {
this.examTimePrefix,
this.examTimeSuffix);
this.webserviceInfoDAO.isMaster(this.webserviceInfo.getWebserviceUUID());
SEBServerInit.INIT_LOGGER.info("------>");
SEBServerInit.INIT_LOGGER.info(
"------> Activate SEB lost-ping-event update background task on a fix rate of: {} milliseconds",
@ -92,7 +94,7 @@ class ExamSessionControlTask implements DisposableBean {
@Scheduled(
fixedDelayString = "${sebserver.webservice.api.exam.update-interval:60000}",
initialDelay = 30000)
initialDelay = 10000)
public void examRunUpdateTask() {
if (!this.webserviceInfoDAO.isMaster(this.webserviceInfo.getWebserviceUUID())) {
@ -112,7 +114,7 @@ class ExamSessionControlTask implements DisposableBean {
@Scheduled(
fixedDelayString = "${sebserver.webservice.api.seb.lostping.update:5000}",
initialDelay = 30000)
initialDelay = 5000)
public void examSessionUpdateTask() {
this.sebClientConnectionService.updatePingEvents();
@ -121,6 +123,10 @@ class ExamSessionControlTask implements DisposableBean {
return;
}
if (log.isTraceEnabled()) {
log.trace("Run exam session update task");
}
this.sebClientConnectionService.cleanupInstructions();
this.examProcotringRoomService.updateProctoringCollectingRooms();
}
@ -134,6 +140,10 @@ class ExamSessionControlTask implements DisposableBean {
return;
}
if (log.isTraceEnabled()) {
log.trace("Run exam session cleanup task");
}
this.sebClientConnectionService.cleanupInstructions();
}

View file

@ -12,7 +12,7 @@ logging.level.ch=INFO
logging.level.ch.ethz.seb.sebserver.webservice.datalayer=INFO
logging.level.org.springframework.cache=INFO
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.lms.impl=INFO
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.session=INFO
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.session=DEBUG
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.session.impl.proctoring=INFO
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.session.impl.indicator=DEBUG
#logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.dao.impl=DEBUG