@ -88,6 +88,13 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>eu.dnetlib.dnetexploremetrics.DnetExploreMetricsApplication</mainClass>
</plugins>
</build>
@ -40,8 +40,8 @@ public class MetricsService {
" or reldatasourcecompatibilityid exact hostedBy or relproject=*))&type=organizations&size=0&format=json";
@Scheduled(cron = "0 0/1 * * * *")
//@Scheduled(cron = "0 0 0 * * ?")
//@Scheduled(cron = "0 0/1 * * * *")
@Scheduled(cron = "0 0 0 * * ?")
private void calculateMetrics() {
logger.info("Calculating metrics...");
Metrics metrics = new Metrics();