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 2021/11/11 09:51:03 UTC

[GitHub] [airflow] ashb commented on a change in pull request #19367: Do not send DAGs with null DagModel.max_active_runs to the scheduler

ashb commented on a change in pull request #19367:
URL: https://github.com/apache/airflow/pull/19367#discussion_r747353957



##########
File path: airflow/models/dag.py
##########
@@ -2880,11 +2884,14 @@ def dags_needing_dagruns(cls, session: Session):
         # TODO[HA]: Bake this query, it is run _A lot_
         # We limit so that _one_ scheduler doesn't try to do all the creation
         # of dag runs
+
         query = (
             session.query(cls)
             .filter(
+                cls.max_active_runs != None,  # noqa

Review comment:
       ```suggestion
   ```
   
   We don't need this condition now I think, right?




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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