This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 64948fa782 Fix UI DAG counts including deleted DAGs (#33778)
64948fa782 is described below
commit 64948fa7824d004e65089c2d159c5e6074727826
Author: Phong Bui <[email protected]>
AuthorDate: Mon Aug 28 00:02:14 2023 +0700
Fix UI DAG counts including deleted DAGs (#33778)
---
airflow/www/views.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index 60e0c03263..8d39a4bcfa 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -835,7 +835,9 @@ class Airflow(AirflowBaseView):
is_paused_count = dict(
session.execute(
- select(DagModel.is_paused,
func.count(DagModel.dag_id)).group_by(DagModel.is_paused)
+ all_dags.with_only_columns([DagModel.is_paused,
func.count()]).group_by(
+ DagModel.is_paused
+ )
).all()
)