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/08/23 15:33:44 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #17786: Improve dag/task concurrency check

kaxil commented on a change in pull request #17786:
URL: https://github.com/apache/airflow/pull/17786#discussion_r694081982



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -322,6 +322,7 @@ def _executable_task_instances_to_queued(self, max_tis: int, session: Session =
             session.query(TI)
             .outerjoin(TI.dag_run)
             .filter(or_(DR.run_id.is_(None), DR.run_type != DagRunType.BACKFILL_JOB))
+            .filter(or_(DR.state.is_(None), DR.state != DagRunState.QUEUED))

Review comment:
       Good catch 👍 




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