You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2023/03/30 10:27:08 UTC

[dolphinscheduler] 02/07: [Fix-11583][UI] Fix the API usage of gantt graph (#13778)

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

zhongjiajie pushed a commit to branch 3.0.5-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git

commit bf4b1995a5b3c98540923cf36b17749c6994e2b5
Author: lxorc <13...@163.com>
AuthorDate: Tue Mar 28 17:17:10 2023 +0800

    [Fix-11583][UI] Fix the API usage of gantt graph (#13778)
    
    (cherry picked from commit 4e2c22061ae70af23d2f2a6f87abd86e435aada5)
---
 .../dolphinscheduler/api/service/impl/ProcessInstanceServiceImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessInstanceServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessInstanceServiceImpl.java
index 41a9bc68fe..b35326a936 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessInstanceServiceImpl.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessInstanceServiceImpl.java
@@ -804,7 +804,7 @@ public class ProcessInstanceServiceImpl extends BaseServiceImpl implements Proce
             task.getEndDate().add(endTime.getTime());
             task.setIsoStart(startTime);
             task.setIsoEnd(endTime);
-            task.setStatus(taskInstance.getState().getDescp().toUpperCase());
+            task.setStatus(taskInstance.getState().name());
             task.setExecutionDate(taskInstance.getStartTime());
             task.setDuration(DateUtils.format2Readable(endTime.getTime() - startTime.getTime()));
             taskList.add(task);