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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 4e2c22061a [Fix-11583][UI] Fix the API usage of gantt graph (#13778)
4e2c22061a is described below

commit 4e2c22061ae70af23d2f2a6f87abd86e435aada5
Author: lxorc <[email protected]>
AuthorDate: Tue Mar 28 17:17:10 2023 +0800

    [Fix-11583][UI] Fix the API usage of gantt graph (#13778)
---
 .../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 2f7417a4cd..547d9ee207 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
@@ -993,7 +993,7 @@ public class ProcessInstanceServiceImpl extends 
BaseServiceImpl implements Proce
                 task.getEndDate().add(endTime.getTime());
                 task.setIsoStart(startTime);
                 task.setIsoEnd(endTime);
-                
task.setStatus(taskInstance.getState().getDesc().toUpperCase());
+                task.setStatus(taskInstance.getState().name());
                 task.setExecutionDate(taskInstance.getStartTime());
                 task.setDuration(DateUtils.format2Readable(endTime.getTime() - 
startTime.getTime()));
                 taskList.add(task);

Reply via email to