forked from github/dataease
fix: 检测数据源状态
This commit is contained in:
parent
e1835b5326
commit
36b0a2a614
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user