提交 36b0a2a6 authored 作者: taojinlong's avatar taojinlong

fix: 检测数据源状态

上级 e1835b53
package io.dataease.job.sechedule; package io.dataease.job.sechedule;
import com.fit2cloud.quartz.anno.QuartzScheduled; import com.fit2cloud.quartz.anno.QuartzScheduled;
import io.dataease.datasource.service.DatasourceService;
import io.dataease.service.dataset.DataSetTableService; import io.dataease.service.dataset.DataSetTableService;
import javax.annotation.Resource;
public class Schedular { public class Schedular {
@Resource
private DataSetTableService dataSetTableService; private DataSetTableService dataSetTableService;
@Resource
private DatasourceService datasourceService;
@QuartzScheduled(cron = "0 0/3 * * * ?") @QuartzScheduled(cron = "0 0/3 * * * ?")
public void updateDatasetTableStatus() { public void updateDatasetTableStatus() {
...@@ -13,7 +19,7 @@ public class Schedular { ...@@ -13,7 +19,7 @@ public class Schedular {
@QuartzScheduled(cron = "0 0/30 * * * ?") @QuartzScheduled(cron = "0 0/30 * * * ?")
public void updateDatasourceStatus() { public void updateDatasourceStatus() {
dataSetTableService.updateDatasetTableStatus(); datasourceService.updateDatasourceStatus();
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论