Merge branch 'master' of http://git.yoho.cn/ops/monitor-service
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -21,7 +21,7 @@ public class NginxCalTask { | @@ -21,7 +21,7 @@ public class NginxCalTask { | ||
21 | @Autowired | 21 | @Autowired |
22 | InfluxComp qcInfluxComp; | 22 | InfluxComp qcInfluxComp; |
23 | 23 | ||
24 | - @Scheduled(cron = "0 0/3 * * * ? ") | 24 | + @Scheduled(fixedRate = 2*60*1000L) |
25 | public void call() { | 25 | public void call() { |
26 | 26 | ||
27 | try { | 27 | try { |
@@ -29,7 +29,7 @@ public class NginxScanTask { | @@ -29,7 +29,7 @@ public class NginxScanTask { | ||
29 | ITypeInfoService typeService; | 29 | ITypeInfoService typeService; |
30 | 30 | ||
31 | //自动发现Nginx监控对象 | 31 | //自动发现Nginx监控对象 |
32 | - @Scheduled(cron = "0 0/1 * * * ? ") | 32 | + @Scheduled(fixedRate = 60*1000L) |
33 | public void doTask() { | 33 | public void doTask() { |
34 | 34 | ||
35 | List<TypeInfo> typeInfosList = typeService.queryAllTypesInfo(); | 35 | List<TypeInfo> typeInfosList = typeService.queryAllTypesInfo(); |
-
Please register or login to post a comment