You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by te...@apache.org on 2019/12/28 11:56:17 UTC

[incubator-dolphinscheduler] branch dev updated: '#1595'

This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 3b65332  '#1595'
     new 34b6537  Merge pull request #1608 from JinyLeeChina/dev
3b65332 is described below

commit 3b653328ef7d441505a3a9d89e187f4d4d1bc1bd
Author: JinyLeeChina <29...@qq.com>
AuthorDate: Fri Dec 27 15:20:57 2019 +0800

    '#1595'
---
 .../dolphinscheduler/server/utils/AlertManager.java  | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java
index 8ae96a3..f3441ed 100644
--- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java
+++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java
@@ -90,15 +90,15 @@ public class AlertManager {
      * process instance format
      */
     private static final String PROCESS_INSTANCE_FORMAT =
-            "\"Id:%d\"," +
-            "\"Name:%s\"," +
-            "\"Job type: %s\"," +
-            "\"State: %s\"," +
-            "\"Recovery:%s\"," +
-            "\"Run time: %d\"," +
-            "\"Start time: %s\"," +
-            "\"End time: %s\"," +
-            "\"Host: %s\"" ;
+            "\"id:%d\"," +
+            "\"name:%s\"," +
+            "\"job type: %s\"," +
+            "\"state: %s\"," +
+            "\"recovery:%s\"," +
+            "\"run time: %d\"," +
+            "\"start time: %s\"," +
+            "\"end time: %s\"," +
+            "\"host: %s\"" ;
 
     /**
      * get process instance content
@@ -234,7 +234,7 @@ public class AlertManager {
 
         String cmdName = getCommandCnName(processInstance.getCommandType());
         String success = processInstance.getState().typeIsSuccess() ? "success" :"failed";
-        alert.setTitle(cmdName + success);
+        alert.setTitle(cmdName + " " + success);
         ShowType showType = processInstance.getState().typeIsSuccess() ? ShowType.TEXT : ShowType.TABLE;
         alert.setShowType(showType);
         String content = getContentProcessInstance(processInstance, taskInstances);