You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dstandish (via GitHub)" <gi...@apache.org> on 2026/01/01 11:27:42 UTC

Re: [PR] Separate "next dag run" from "max active runs" [airflow]

dstandish commented on code in PR #60006:
URL: https://github.com/apache/airflow/pull/60006#discussion_r2656288150


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -1847,13 +1846,8 @@ def _create_dag_runs(self, dag_models: Collection[DagModel], session: Session) -
                     #  https://github.com/apache/airflow/issues/59120
                     continue
 
-            self._update_next_dagrun_fields(
-                serdag=serdag,
-                dag_model=dag_model,
-                session=session,
-                active_non_backfill_runs=active_runs_of_dags[serdag.dag_id],
-                data_interval=data_interval,
-            )
+            self._check_exceeds_max_active_runs(dag_model=dag_model, session=session)
+            dag_model.calculate_dagrun_date_fields(dag=serdag, last_automated_dag_run=data_interval)

Review Comment:
   since we have separated the "exceeds max" check from "next dagrun", we can now call them both unconditionally



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