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

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

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

    cherry-pick [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 d43ec7b7a6..5a3b42b155 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
@@ -835,7 +835,7 @@ public class ProcessInstanceServiceImpl extends 
BaseServiceImpl implements Proce
                 task.getEndDate().add(endTime.getTime());
                 task.setIsoStart(startTime);
                 task.setIsoEnd(endTime);
-                task.setStatus(taskInstance.getState().toString());
+                task.setStatus(taskInstance.getState().name());
                 task.setExecutionDate(taskInstance.getStartTime());
                 task.setDuration(DateUtils.format2Readable(endTime.getTime() - 
startTime.getTime()));
                 taskList.add(task);

Reply via email to