pingzh commented on code in PR #21877:
URL: https://github.com/apache/airflow/pull/21877#discussion_r879715014
##########
airflow/jobs/scheduler_job.py:
##########
@@ -764,6 +765,26 @@ def _execute(self) -> None:
self.log.exception("Exception when executing
DagFileProcessorAgent.end")
self.log.info("Exited execute loop")
+ def _update_dag_run_state_for_paused_dags(self):
+ try:
+ paused_dag_ids = DagModel.get_all_paused_dag_ids()
+ for dag_id in paused_dag_ids:
+ if dag_id in self._paused_dag_without_running_dagruns:
+ continue
Review Comment:
good catch. let me open a PR.
--
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]