Skip to content

Commit

Permalink
use dag_folder for stats
Browse files Browse the repository at this point in the history
  • Loading branch information
radujica committed Dec 19, 2024
1 parent 60b04ae commit ba11246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models/dagbag.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def collect_dags(
file_parse_end_dttm = timezone.utcnow()
stats.append(
FileLoadStat(
file=filepath.replace(settings.DAGS_FOLDER, ""),
file=filepath.replace(dag_folder, ""),
duration=file_parse_end_dttm - file_parse_start_dttm,
dag_num=len(found_dags),
task_num=sum(len(dag.tasks) for dag in found_dags),
Expand Down

0 comments on commit ba11246

Please sign in to comment.