Authored by FengRuwei

每一分钟执行一次

... ... @@ -19,11 +19,9 @@ public class ScheduledPlan {
@Autowired
JavaApiClient javaApiClient;
//TODO config prop
@Scheduled(fixedRate = 180000)
@Scheduled(cron="${cron_task_javaapi_monitor}")
public void run() {
log.info("task start...");
log.info("########## task start...");
// javaApiClient.init4Test();
javaApiClient.initClient();
... ... @@ -31,7 +29,7 @@ public class ScheduledPlan {
javaApiClient.run();
log.info("task end...");
log.info("########## task end...");
}
}
... ...
... ... @@ -16,5 +16,7 @@ cron_task_project_status=0 0/3 * * * ?
cron.task.bandwidth=1 0/5 * * * ?
cron_task_javaapi_monitor=0 0/1 * * * ?
... ...
... ... @@ -22,3 +22,5 @@ cron_task_dns_monit=0 0 0 * * ?
cron_task_project_status=0 0 0 * * ?
cron.task.bandwidth=0 0 0 * * ?
cron_task_javaapi_monitor=0 0/1 * * * ?
... ...