Lee-W commented on code in PR #71072:
URL: https://github.com/apache/airflow/pull/71072#discussion_r3811881273


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -357,6 +358,10 @@ def __init__(
         self._multi_team = conf.getboolean("core", "multi_team")
         self._dag_tags_in_metrics = conf.getboolean("metrics", 
"dag_tags_in_metrics", fallback=False)
         self._max_partition_dag_runs_per_loop = MAX_PARTITION_DAG_RUNS_PER_LOOP
+        # Edge-triggers the "partition Dag run cap reached" audit Log row: 
True once that row
+        # has been committed for the current backlog episode, reset to False 
once the backlog
+        # drains below the cap.
+        self._partition_cap_backlog_reported = False

Review Comment:
   `_partition_cap_backlog_reported` is not shared across HA scheduler 
replicas. Worst case is one audit row per active scheduler per episode instead 
of one globally. It's redundant but not incorrect, since the write is purely 
observational. Added a comment for 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]

Reply via email to