ayush3singh opened a new issue, #50317:
URL: https://github.com/apache/airflow/issues/50317

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   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 , 
https://github.com/apache/airflow/pull/49868changed 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
   
   
   Duration is shown as 
   
   `1746639208.69s`
   it should be in 
   `1.2s`
   
   <img width="1444" alt="Image" 
src="https://github.com/user-attachments/assets/1d34d120-9e61-48be-b947-195ed1135876";
 />
   
   
   ### What you think should happen instead?
   
   it should be in
   `1.2s`
   
   ### How to reproduce
   
   `airflow dag-processor`
   
   DAG File processing stats in logs
   
   ### Operating System
   
   Ubuntu 24.04.2 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   local deployment 
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to