nuclearpinguin commented on a change in pull request #6472: [AIRFLOW-6058]
Running tests with pytest
URL: https://github.com/apache/airflow/pull/6472#discussion_r350450470
##########
File path: airflow/www/views.py
##########
@@ -1029,7 +1029,6 @@ def blocked(self, session=None):
for dag_id, active_dag_runs in dags:
max_active_runs = 0
dag = dagbag.get_dag(dag_id)
- max_active_runs = dagbag.dags[dag_id].max_active_runs
Review comment:
Yes, sometimes the dag is `None` (as suggested also by the if condition) and
in that cases the `dag_id` key may not be present. In general I think
`get_dag` is the right way to get a DAG from dagbag.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services