ephraimbuddy commented on code in PR #26342:
URL: https://github.com/apache/airflow/pull/26342#discussion_r972346491


##########
airflow/jobs/scheduler_job.py:
##########
@@ -783,7 +784,15 @@ def _update_dag_run_state_for_paused_dags(self) -> None:
                 dag = SerializedDagModel.get_dag(dag_id)
                 if dag is None:
                     continue
-                dag_runs = DagRun.find(dag_id=dag_id, 
state=DagRunState.RUNNING)
+                dag_runs = (
+                    session.query(DagRun)
+                    .filter(
+                        DagRun.dag_id == dag_id,
+                        DagRun.state == State.RUNNING,

Review Comment:
   ```suggestion
                           DagRun.state == DagRunState.RUNNING,
   ```



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