[Trunk | Orcid Service]: MetricsService.java: Run "calculateMetrics()" method once a day at midnight.
This commit is contained in:
parent
ca6f47e7d6
commit
6f94e1d5f6
|
@ -77,9 +77,9 @@ public class MetricsService {
|
|||
|
||||
|
||||
// every day at midnight
|
||||
// @Scheduled(cron = "0 0 0 * * ?")
|
||||
@Scheduled(cron = "0 0 0 * * ?")
|
||||
// // every 5 mins for testing
|
||||
@Scheduled(cron = "0 0/5 * * * *")
|
||||
// @Scheduled(cron = "0 0/5 * * * *")
|
||||
public Metrics calculateMetrics() {
|
||||
log.info("Calculate metrics and add them in DB");
|
||||
|
||||
|
|
Loading…
Reference in New Issue