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

   ### Apache Airflow version
   
   main (development)
   
   ### If "Other Airflow 3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   In #62119 behavior of `getDuration` was changed from previous version where 
start_date/end_date being null or undefined used to take current time. With 
this change when either of start_date or end_date is null or undefined then 
undefined is returned. This change breaks behaviors in #61898 and possibly 
other places. If the behavior is confirmed then the places where end_date being 
null used current time have to be updated. Opened this issue for discussion on 
the intended behavior and how getDuration should return for different values.
   
   
https://github.com/apache/airflow/pull/62119/changes#diff-f5e10e85b14ace885318441f317917086030533d5ece3492b8b06f461baf4ed5R50-R59
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   1. Start a task instance and view the running task instance header's 
duration field. `getDuration(start_date, null)` used to return difference 
between current time - start_date but now returns undefined.
   
   ### Operating System
   
   Ubuntu 20.04
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to