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/04/13 15:08:22 UTC

[GitHub] [airflow] matt-land commented on a change in pull request #15210: order query to find out tasks to queue

matt-land commented on a change in pull request #15210:
URL: https://github.com/apache/airflow/pull/15210#discussion_r612535908



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -924,6 +924,7 @@ def _executable_task_instances_to_queued(self, max_tis: int, session: Session =
             .filter(not_(DM.is_paused))
             .filter(TI.state == State.SCHEDULED)
             .options(selectinload('dag_model'))
+            .order_by(-TI.priority_weight, TI.execution_date)

Review comment:
       How do we determine if the build is failing from master vs the new test?




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