diff --git a/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java b/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java index 326474ce88..8ae57b8d27 100644 --- a/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java +++ b/escheduler-api/src/main/java/cn/escheduler/api/service/DataAnalysisService.java @@ -357,7 +357,7 @@ public class DataAnalysisService { i = 0; for (String taskKillStr : tasksKillList){ if (StringUtils.isNotEmpty(taskKillStr)){ - String[] splits = taskKillStr.split("_"); + String[] splits = taskKillStr.split("-"); if (splits.length == 2){ tasksKillIds[i++]=Integer.parseInt(splits[1]); } diff --git a/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java b/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java index a5c72758fb..36b9b45861 100644 --- a/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java +++ b/escheduler-api/src/main/java/cn/escheduler/api/service/DataSourceService.java @@ -480,7 +480,9 @@ public class DataSourceService extends BaseService{ } - logger.info("parameters map-----" + JSONObject.toJSONString(parameterMap)); + if(logger.isDebugEnabled()){ + logger.info("parameters map-----" + JSONObject.toJSONString(parameterMap)); + } return JSONObject.toJSONString(parameterMap); diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/timeoutAlarm.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/timeoutAlarm.vue index f2658d4c6e..389396e397 100644 --- a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/timeoutAlarm.vue +++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/timeoutAlarm.vue @@ -33,7 +33,7 @@
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue index a46999ec20..761c2cbb8a 100644 --- a/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue +++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue @@ -4,6 +4,7 @@
{{$t('Set the DAG diagram name')}}
+
+ + +
+ 超时告警 + + + +
+
+ + + {{$t('Minute')}} + + +
+
{{$t('Set global')}}
@@ -68,7 +85,11 @@ // Global custom parameters udpList: [], // Whether to update the process definition - syncDefine: true + syncDefine: true, + // Timeout alarm + timeout: 0, + // checked Timeout alarm + checkedTimeout: true } }, mixins: [disabledState], @@ -81,6 +102,14 @@ _onLocalParams (a) { this.udpList = a }, + _verifTimeout () { + const reg = /^[1-9]\d*$/ + if (!reg.test(this.timeout)) { + alert(1) + return false + } + return true + }, /** * submit */ @@ -95,9 +124,15 @@ if (!this.$refs.refLocalParams._verifProp()) { return } + // verification timeout + if (!this._verifTimeout()) { + return + } + // Storage global globalParams this.store.commit('dag/setGlobalParams', _.cloneDeep(this.udpList)) this.store.commit('dag/setName', _.cloneDeep(this.name)) + this.store.commit('dag/setTimeout', _.cloneDeep(this.timeout)) this.store.commit('dag/setDesc', _.cloneDeep(this.desc)) this.store.commit('dag/setSyncDefine', this.syncDefine) Affirm.setIsPop(false) @@ -124,12 +159,20 @@ } }, watch: { + checkedTimeout (val) { + if (!val) { + this.timeout = 0 + this.store.commit('dag/setTimeout', _.cloneDeep(this.timeout)) + } + } }, created () { this.udpList = this.store.state.dag.globalParams this.name = this.store.state.dag.name this.desc = this.store.state.dag.desc this.syncDefine = this.store.state.dag.syncDefine + this.timeout = this.store.state.dag.timeout || 0 + this.checkedTimeout = this.timeout !== 0 }, mounted () {}, components: { mLocalParams } diff --git a/escheduler-ui/src/js/conf/home/pages/home/index.vue b/escheduler-ui/src/js/conf/home/pages/home/index.vue index 4f3e2e977b..ff9876952b 100644 --- a/escheduler-ui/src/js/conf/home/pages/home/index.vue +++ b/escheduler-ui/src/js/conf/home/pages/home/index.vue @@ -1,16 +1,12 @@ diff --git a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/master.vue b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/master.vue index 619f4932c9..6bd9e0dbab 100644 --- a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/master.vue +++ b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/master.vue @@ -6,12 +6,12 @@
IP: {{item.host}} - 端口: {{item.port}} - zk注册目录: {{item.zkDirectory}} + {{$t('Port')}}: {{item.port}} + {{$t('Zk registration directory')}}: {{item.zkDirectory}}
- 创建时间: {{item.createTime | formatDate}} - 最后心跳时间: {{item.lastHeartbeatTime | formatDate}} + {{$t('Create Time')}}: {{item.createTime | formatDate}} + {{$t('Last heartbeat time')}}: {{item.lastHeartbeatTime | formatDate}}
diff --git a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/mysql.vue b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/mysql.vue index 933264d730..e3e9bdb665 100644 --- a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/mysql.vue +++ b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/mysql.vue @@ -22,7 +22,7 @@
- 最大连接数 + 最大连接数 - {{item.date | formatDate}}
{{item.maxConnections}} @@ -48,13 +48,13 @@
- 最大连接数 + 最大使用连接数
{{item.maxUsedConnections}}
- 最大连接数 + 最大使用连接数
diff --git a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/servers.scss b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/servers.scss index a80046a81e..255d8921eb 100644 --- a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/servers.scss +++ b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/servers.scss @@ -59,7 +59,7 @@ height: 160px; line-height: 160px; >b { - font-size: 80px; + font-size: 72px; } >.state { >i { diff --git a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/worker.vue b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/worker.vue index f6a77c1b19..96a4f80258 100644 --- a/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/worker.vue +++ b/escheduler-ui/src/js/conf/home/pages/monitor/pages/servers/worker.vue @@ -6,12 +6,12 @@
IP: {{item.host}} - 端口: {{item.port}} - zk注册目录: {{item.zkDirectory}} + {{$t('Port')}}: {{item.port}} + {{$t('Zk registration directory')}}: {{item.zkDirectory}}
- 创建时间: {{item.createTime | formatDate}} - 最后心跳时间: {{item.lastHeartbeatTime | formatDate}} + {{$t('Create Time')}}: {{item.createTime | formatDate}} + {{$t('Last heartbeat time')}}: {{item.lastHeartbeatTime | formatDate}}
diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js index ef30ad9a0b..90a362afdf 100644 --- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/chartConfig.js @@ -90,7 +90,8 @@ let simple = { }) return str } - } + }, + color:['#D5050B','#0398E1'] } diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/commandStateCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/commandStateCount.vue new file mode 100644 index 0000000000..7f038e0356 --- /dev/null +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/commandStateCount.vue @@ -0,0 +1,77 @@ + + \ No newline at end of file diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue new file mode 100644 index 0000000000..1ecea42b8f --- /dev/null +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue @@ -0,0 +1,70 @@ + + diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue new file mode 100644 index 0000000000..19022d75cb --- /dev/null +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue @@ -0,0 +1,122 @@ + + + + diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/projectChart.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/projectChart.vue deleted file mode 100644 index 6d7ca15574..0000000000 --- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/projectChart.vue +++ /dev/null @@ -1,362 +0,0 @@ - - - - diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue new file mode 100644 index 0000000000..7ac724bf33 --- /dev/null +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/queueCount.vue @@ -0,0 +1,104 @@ + + + + diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue new file mode 100644 index 0000000000..2f1108ce20 --- /dev/null +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue @@ -0,0 +1,129 @@ + + + + diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue index c8e75e315f..df70543643 100644 --- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue +++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/index.vue @@ -1,12 +1,84 @@ + + \ No newline at end of file diff --git a/escheduler-ui/src/js/conf/home/pages/security/pages/token/index.vue b/escheduler-ui/src/js/conf/home/pages/security/pages/token/index.vue index f7132dbcd6..c8fdc6603f 100644 --- a/escheduler-ui/src/js/conf/home/pages/security/pages/token/index.vue +++ b/escheduler-ui/src/js/conf/home/pages/security/pages/token/index.vue @@ -5,35 +5,6 @@ import mToken from '@/conf/home/pages/user/pages/token' export default { name: 'token-index', - data () { - return {} - }, - props: {}, - methods: {}, - watch: {}, - beforeCreate () { - }, - created () { - }, - beforeMount () { - }, - mounted () { - }, - beforeUpdate () { - }, - updated () { - }, - beforeDestroy () { - }, - destroyed () { - }, - computed: {}, components: { mToken } } - - diff --git a/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue b/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue index ff3d20be24..ecbf97a691 100644 --- a/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue +++ b/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/createWorker.vue @@ -2,7 +2,7 @@ diff --git a/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/list.vue b/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/list.vue index a6fd4ef4e3..f4983ae46c 100644 --- a/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/list.vue +++ b/escheduler-ui/src/js/conf/home/pages/security/pages/workerGroups/_source/list.vue @@ -7,7 +7,7 @@ {{$t('#')}} - 分组名称 + {{$t('Group')}} IPList @@ -62,8 +62,6 @@