fix: 检测数据源状态

This commit is contained in:
taojinlong 2021-08-19 14:09:51 +08:00
parent e1835b5326
commit 36b0a2a614

View File

@ -1,10 +1,16 @@
package io.dataease.job.sechedule;
import com.fit2cloud.quartz.anno.QuartzScheduled;
import io.dataease.datasource.service.DatasourceService;
import io.dataease.service.dataset.DataSetTableService;
import javax.annotation.Resource;
public class Schedular {
@Resource
private DataSetTableService dataSetTableService;
@Resource
private DatasourceService datasourceService;
@QuartzScheduled(cron = "0 0/3 * * * ?")
public void updateDatasetTableStatus() {
@ -13,7 +19,7 @@ public class Schedular {
@QuartzScheduled(cron = "0 0/30 * * * ?")
public void updateDatasourceStatus() {
dataSetTableService.updateDatasetTableStatus();
datasourceService.updateDatasourceStatus();
}
}