执行SQL:

SELECT  execution_date
       ,  MIN(start_date) AS start
       ,  MAX(end_date) AS end
       ,  MAX(end_date) - MIN(start_date) AS duration
    FROM  task_instance
   WHERE  dag_id = 'HKG042476_Woocommerce_Handle'
     AND  state = 'success'
GROUP BY  execution_date
ORDER BY  execution_date DESC

 

 

posted on 2019-11-01 14:26  lshan  阅读(974)  评论(0编辑  收藏  举报