XD-DENG commented on a change in pull request #5350: [AIRFLOW-4716] Instrument
dag loading time duration
URL: https://github.com/apache/airflow/pull/5350#discussion_r294300165
##########
File path: airflow/models/dagbag.py
##########
@@ -391,6 +396,14 @@ def collect_dags(
'dagbag_import_errors', len(self.import_errors), 1)
self.dagbag_stats = sorted(
stats, key=lambda x: x.duration, reverse=True)
+ for file_stat in self.dagbag_stats:
+ dag_ids= dags_by_name[file_stat.dags]
+ if file_stat.dag_num >= 1:
+ # if we found multiple dags per file, the stat is 'dag_id1 |
dag_id2'
Review comment:
If we use underscore, maybe the comment line requires update? Or we can also
consider removing 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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services