tanelk commented on code in PR #21877:
URL: https://github.com/apache/airflow/pull/21877#discussion_r879012803
##########
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:
dag_ids are never removed from this set. If I unpause the DAG after this has
run and then later re-pause it, then this method skips it.
--
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]