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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to