ayush3singh opened a new pull request, #50316:
URL: https://github.com/apache/airflow/pull/50316

   ### 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 
](https://github.com/apache/airflow/pull/49868) changed to `time.monotonic()` 
for process start_time and then the log statement stated comparing unix 
timestamp to monotonic counter which gave wrong stats as shown below
   
   <img width="1444" alt="Screenshot 2025-05-06 at 4 07 47 PM" 
src="https://github.com/user-attachments/assets/94b8102d-d0da-4862-a67a-c05a87b8fcf0";
 />
   
   
   ### Fix
   
   This Fix changes the `time.time()` calls to use `time.monotonic()` and it 
fixes the issue as shown below:
   
   
   <img width="1452" alt="Screenshot 2025-05-07 at 8 54 40 AM" 
src="https://github.com/user-attachments/assets/beb9a9f8-9feb-4f63-a198-9f81de2b84a5";
 />
   
   


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