Clarify logs when a DAG is being processed in DPM#65196
Merged
amoghrajesh merged 2 commits intoapache:mainfrom Apr 15, 2026
Merged
Clarify logs when a DAG is being processed in DPM#65196amoghrajesh merged 2 commits intoapache:mainfrom
amoghrajesh merged 2 commits intoapache:mainfrom
Conversation
potiuk
approved these changes
Apr 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the debug logging in the DAG file processor manager to make it clearer how long a DAG file has been processing, avoiding confusion caused by logging a raw time.monotonic() start value.
Changes:
- Updates the “still being processed” debug log message to include an elapsed duration (
time.monotonic() - processor.start_time). - Switches log formatting to fixed-precision floats for start and duration.
kaxil
reviewed
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was generative AI tooling used to co-author this PR?
The "still being processed" debug log in the DAG file processor manager was logging
processor.start_timewhich is atime.monotonic()value, and honestly that is confusing while debuggingFor example, it could lead to misreading
2637as"this file has been processing for 2637 seconds" when it is actually the monotonic clock value at process start).
I propose to add the elapsed duration (
now - processor.start_time) alongside the start time (not removing it if someone has processes that rely on it), so the log now reads:File path my_dag.py is still being processed (started: 2637.46, duration: 12.34s){pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.