Apache Airflow version
2.2.2 (latest released)
Operating System
Debian
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
What happened
Since version 2.2 a field DAG.next_dagrun_create_after is not calculated when DAG.max_active_runs is 1.
What you expected to happen
|
if num_active_runs.get(dag.dag_id, 0) >= orm_dag.max_active_runs: |
If this condition is evaluated when a state is "running" then it is incorrect.
How to reproduce
Create a DAG with a schedule_interval and max_active_runs=1.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Apache Airflow version
2.2.2 (latest released)
Operating System
Debian
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
What happened
Since version 2.2 a field
DAG.next_dagrun_create_afteris not calculated whenDAG.max_active_runsis 1.What you expected to happen
airflow/airflow/models/dag.py
Line 2466 in fca2b19
If this condition is evaluated when a state is "running" then it is incorrect.
How to reproduce
Create a DAG with a
schedule_intervalandmax_active_runs=1.Anything else
No response
Are you willing to submit PR?
Code of Conduct