version with manifest
This commit is contained in:
parent
110a9c7c8b
commit
704dfc6c94
7
pom.xml
7
pom.xml
|
@ -88,6 +88,13 @@
|
||||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>eu.dnetlib.dnetexploremetrics.DnetExploreMetricsApplication</mainClass>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -40,8 +40,8 @@ public class MetricsService {
|
||||||
" or reldatasourcecompatibilityid exact hostedBy or relproject=*))&type=organizations&size=0&format=json";
|
" or reldatasourcecompatibilityid exact hostedBy or relproject=*))&type=organizations&size=0&format=json";
|
||||||
|
|
||||||
|
|
||||||
@Scheduled(cron = "0 0/1 * * * *")
|
//@Scheduled(cron = "0 0/1 * * * *")
|
||||||
//@Scheduled(cron = "0 0 0 * * ?")
|
@Scheduled(cron = "0 0 0 * * ?")
|
||||||
private void calculateMetrics() {
|
private void calculateMetrics() {
|
||||||
logger.info("Calculating metrics...");
|
logger.info("Calculating metrics...");
|
||||||
Metrics metrics = new Metrics();
|
Metrics metrics = new Metrics();
|
||||||
|
|
Loading…
Reference in New Issue