forked from github/dataease
feat: 定时检测数据源状态信息
This commit is contained in:
parent
b8f4a819f9
commit
9cda59e224
@ -0,0 +1,19 @@
|
||||
package io.dataease.job.sechedule;
|
||||
|
||||
import com.fit2cloud.quartz.anno.QuartzScheduled;
|
||||
import io.dataease.service.dataset.DataSetTableService;
|
||||
|
||||
public class Schedular {
|
||||
private DataSetTableService dataSetTableService;
|
||||
|
||||
@QuartzScheduled(cron = "0 0/3 * * * ?")
|
||||
public void updateDatasetTableStatus() {
|
||||
dataSetTableService.updateDatasetTableStatus();
|
||||
}
|
||||
|
||||
@QuartzScheduled(cron = "0 0/30 * * * ?")
|
||||
public void updateDatasourceStatus() {
|
||||
dataSetTableService.updateDatasetTableStatus();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1 @@
|
||||
ALTER TABLE `datasource` ADD COLUMN `status` VARCHAR(45) NULL COMMENT '状态' AFTER `create_by`;
|
1
frontend/src/icons/svg/exclamationmark.svg
Normal file
1
frontend/src/icons/svg/exclamationmark.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1629085981011" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16882" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M637.6 82.3L610.9 643c-1.6 34.1-29.8 61-63.9 61h-70c-34.2 0-62.3-26.8-63.9-61L386.4 82.3c-1.3-27.4 20.5-50.3 48-50.3h155.3c27.4 0 49.2 22.9 47.9 50.3zM640 864c0 35.3-14.3 67.3-37.5 90.5-23.2 23.2-55.2 37.5-90.5 37.5s-67.3-14.3-90.5-37.5C398.3 931.3 384 899.3 384 864c0-70.7 57.3-128 128-128 35.3 0 67.3 14.3 90.5 37.5 23.2 23.2 37.5 55.2 37.5 90.5z" p-id="16883" fill="#d81e06"></path></svg>
|
After Width: | Height: | Size: 769 B |
Loading…
Reference in New Issue
Block a user