You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/07/12 06:36:15 UTC

[dolphinscheduler] branch dev updated: [Imporvement #5621][job instance] start-time and end-time (#5621) (#5797)

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

kirs 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 70fef3d  [Imporvement #5621][job instance] start-time and end-time (#5621) (#5797)
70fef3d is described below

commit 70fef3daed5cb5add90dd3ada3d753533dea59ae
Author: Tandoy <56...@users.noreply.github.com>
AuthorDate: Mon Jul 12 14:36:09 2021 +0800

    [Imporvement #5621][job instance] start-time and end-time (#5621) (#5797)
    
    ·the list of workflow instances is sorted by start time and end time
    ·This closes #5621
---
 .../org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml
index af89154..5880434 100644
--- a/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml
+++ b/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/ProcessInstanceMapper.xml
@@ -116,7 +116,7 @@
         <if test="executorId != 0">
             and instance.executor_id = #{executorId}
         </if>
-        order by instance.start_time desc
+        order by instance.start_time desc,instance.end_time desc
     </select>
     <update id="setFailoverByHostAndStateArray">
         update t_ds_process_instance