You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/29 16:15:21 UTC

[GitHub] [airflow] XD-DENG commented on a change in pull request #12707: Refine the DB query logics in www.views.task_stats()

XD-DENG commented on a change in pull request #12707:
URL: https://github.com/apache/airflow/pull/12707#discussion_r532231189



##########
File path: airflow/www/views.py
##########
@@ -678,10 +677,6 @@ def task_stats(self, session=None):
                 running_dag_run_query_result.c.execution_date == TaskInstance.execution_date,
             ),
         )
-        if selected_dag_ids:
-            running_task_instance_query_result = running_task_instance_query_result.filter(
-                TaskInstance.dag_id.in_(filter_dag_ids)
-            )

Review comment:
       This chunk is not necessary because of line 662 + line 676 above.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org