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/08 01:39:36 UTC

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

ginevragaudioso commented on a change in pull request #15210:
URL: https://github.com/apache/airflow/pull/15210#discussion_r609194927



##########
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:
       Done, although I am not sure if the build failure I now get is related to my test or not.




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