Bladeren bron

feat:修改监控SQL

zhaohaipeng 4 dagen geleden
bovenliggende
commit
016751c54e
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      monitor/supply_workflow_monitor.py

+ 3 - 3
monitor/supply_workflow_monitor.py

@@ -179,10 +179,10 @@ def supply_workflow_dashboard_stat(ts: int) -> List[Dict[str, Any]]:
                    IFNULL(stat_yest.crawler_plan_cnt, 0) AS '昨日计划数',
                    IFNULL(stat_yest.crawler_plan_cnt, 0) AS '昨日计划数',
                    IFNULL(stat.total_cnt, 0)             AS '当日任务数',
                    IFNULL(stat.total_cnt, 0)             AS '当日任务数',
                    IFNULL(stat_yest.total_cnt, 0)        AS '昨日任务数',
                    IFNULL(stat_yest.total_cnt, 0)        AS '昨日任务数',
-                   IFNULL(stat.init_cnt, 0)              AS '当日待处理',
-                   IFNULL(stat.running_cnt, 0)           AS '当日运行中',
                    IFNULL(stat.success_cnt, 0)           AS '当日成功',
                    IFNULL(stat.success_cnt, 0)           AS '当日成功',
-                   IFNULL(stat.fail_success, 0)          AS '当日失败'
+                   IFNULL(stat.fail_success, 0)          AS '当日失败',
+                   IFNULL(stat.running_cnt, 0)           AS '当日运行中',
+                   IFNULL(stat.init_cnt, 0)              AS '当日待处理'
             FROM supply_workflow sw
             FROM supply_workflow sw
                      LEFT JOIN (
                      LEFT JOIN (
                                    SELECT swt.workflow_id,
                                    SELECT swt.workflow_id,