-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Fixes DagProcessor stats log | process duration changed to use time.monotonic #50316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
@tirkarthi Please review Thanks for all the help |
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
…time.monotonic() (apache#50316) (cherry picked from commit 4f4f9bd) Co-authored-by: ayush3singh <yesayushcan@gmail.com>
Fixes #50317
Why
Log statement
DAG File Processing stats captured 'Current Duration' and 'Last Duration' and was using
time.time()
to calculate the duration of processing a DAG , PR changed totime.monotonic()
for process start_time and then the log statement stated comparing unix timestamp to monotonic counter which gave wrong stats as shown belowFix
This Fix changes the
time.time()
calls to usetime.monotonic()
and it fixes the issue as shown below: