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/09/02 08:19:46 UTC

[GitHub] [airflow] ephraimbuddy edited a comment on pull request #17945: Fix max_active_runs not allowing scheduling of other dagruns

ephraimbuddy edited a comment on pull request #17945:
URL: https://github.com/apache/airflow/pull/17945#issuecomment-911357411


   What happens is that the method `DagRun.next_dagruns_to_examine` gets the earliest dagruns without considering the dag that has the dagrun.
   For example:
   If you have a dag with execution_date 2020,1,1 and set `catchup=True, max_active_runs=1, schedule_interval='@daily'` and another dag with execution_date 2021,1,1 and also set `catchup=True, schedule_interval='@daily'`.
   When you unpause the two dags(the one with max_active_runs first), the dagruns would be created but only one dagrun would be active because of how DagRun.next_dagruns_to_examine works.
   (worried about performance on this PR. Please advice)


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