SEBSERV-266
This commit is contained in:
parent
fe2d89ca49
commit
5ed368181b
2 changed files with 13 additions and 3 deletions
|
@ -84,6 +84,8 @@ class ExamSessionControlTask implements DisposableBean {
|
||||||
this.examTimePrefix,
|
this.examTimePrefix,
|
||||||
this.examTimeSuffix);
|
this.examTimeSuffix);
|
||||||
|
|
||||||
|
this.webserviceInfoDAO.isMaster(this.webserviceInfo.getWebserviceUUID());
|
||||||
|
|
||||||
SEBServerInit.INIT_LOGGER.info("------>");
|
SEBServerInit.INIT_LOGGER.info("------>");
|
||||||
SEBServerInit.INIT_LOGGER.info(
|
SEBServerInit.INIT_LOGGER.info(
|
||||||
"------> Activate SEB lost-ping-event update background task on a fix rate of: {} milliseconds",
|
"------> Activate SEB lost-ping-event update background task on a fix rate of: {} milliseconds",
|
||||||
|
@ -92,7 +94,7 @@ class ExamSessionControlTask implements DisposableBean {
|
||||||
|
|
||||||
@Scheduled(
|
@Scheduled(
|
||||||
fixedDelayString = "${sebserver.webservice.api.exam.update-interval:60000}",
|
fixedDelayString = "${sebserver.webservice.api.exam.update-interval:60000}",
|
||||||
initialDelay = 30000)
|
initialDelay = 10000)
|
||||||
public void examRunUpdateTask() {
|
public void examRunUpdateTask() {
|
||||||
|
|
||||||
if (!this.webserviceInfoDAO.isMaster(this.webserviceInfo.getWebserviceUUID())) {
|
if (!this.webserviceInfoDAO.isMaster(this.webserviceInfo.getWebserviceUUID())) {
|
||||||
|
@ -112,7 +114,7 @@ class ExamSessionControlTask implements DisposableBean {
|
||||||
|
|
||||||
@Scheduled(
|
@Scheduled(
|
||||||
fixedDelayString = "${sebserver.webservice.api.seb.lostping.update:5000}",
|
fixedDelayString = "${sebserver.webservice.api.seb.lostping.update:5000}",
|
||||||
initialDelay = 30000)
|
initialDelay = 5000)
|
||||||
public void examSessionUpdateTask() {
|
public void examSessionUpdateTask() {
|
||||||
|
|
||||||
this.sebClientConnectionService.updatePingEvents();
|
this.sebClientConnectionService.updatePingEvents();
|
||||||
|
@ -121,6 +123,10 @@ class ExamSessionControlTask implements DisposableBean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (log.isTraceEnabled()) {
|
||||||
|
log.trace("Run exam session update task");
|
||||||
|
}
|
||||||
|
|
||||||
this.sebClientConnectionService.cleanupInstructions();
|
this.sebClientConnectionService.cleanupInstructions();
|
||||||
this.examProcotringRoomService.updateProctoringCollectingRooms();
|
this.examProcotringRoomService.updateProctoringCollectingRooms();
|
||||||
}
|
}
|
||||||
|
@ -134,6 +140,10 @@ class ExamSessionControlTask implements DisposableBean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (log.isTraceEnabled()) {
|
||||||
|
log.trace("Run exam session cleanup task");
|
||||||
|
}
|
||||||
|
|
||||||
this.sebClientConnectionService.cleanupInstructions();
|
this.sebClientConnectionService.cleanupInstructions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ logging.level.ch=INFO
|
||||||
logging.level.ch.ethz.seb.sebserver.webservice.datalayer=INFO
|
logging.level.ch.ethz.seb.sebserver.webservice.datalayer=INFO
|
||||||
logging.level.org.springframework.cache=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.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.proctoring=INFO
|
||||||
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.session.impl.indicator=DEBUG
|
logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.session.impl.indicator=DEBUG
|
||||||
#logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.dao.impl=DEBUG
|
#logging.level.ch.ethz.seb.sebserver.webservice.servicelayer.dao.impl=DEBUG
|
||||||
|
|
Loading…
Reference in a new issue