jason810496 commented on code in PR #45961:
URL: https://github.com/apache/airflow/pull/45961#discussion_r1932460386


##########
airflow/models/dagrun.py:
##########
@@ -1227,11 +1217,11 @@ def 
_emit_true_scheduling_delay_stats_for_finished_state(self, finished_tis: lis
         rid of the outliers on the stats side through dashboards tooling.
 
         Note that the stat will only be emitted for scheduler-triggered DAG 
runs
-        (i.e. when ``external_trigger`` is *False* and ``clear_number`` is 
equal to 0).
+        (i.e. when ``run_type`` is *MANUAL* and ``clear_number`` is equal to 
0).

Review Comment:
   After looking deeper, I think `external_trigger is False` is equivalent to 
`run_type is SCHEDULED` and should fit this case.



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