You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2023/03/31 02:45:33 UTC
[dolphinscheduler] 02/06: cherry-pick [Fix-11583][UI] Fix the API usage of gantt graph #13778
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 <13...@163.com>
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);