tirkarthi commented on issue #31555: URL: https://github.com/apache/airflow/issues/31555#issuecomment-1570193690
While setting task state the task's existing end_date is checked. Meanwhile for dagrun it seems the check is not done and it seems intentional and given the commit has tests it might be breaking backwards compatibility. https://github.com/apache/airflow/blob/a8c45b088e088a5f1d9c924f9efb660c80c0ce12/airflow/models/taskinstance.py#L934-L936 commit b4f1c73f8ea5ecee1889f956cba30a55198354d6 Author: Yingbo Wang <[email protected]> Date: Fri Aug 31 16:49:39 2018 -0700 [AIRFLOW-2951] Update dag_run table end_date when state change (#3798) The existing airflow only change dag_run table end_date value when a user teminate a dag in web UI. The end_date will not be updated if airflow detected a dag finished and updated its state. This commit add end_date update in DagRun's set_state function to make up tho problem mentioned above. -- 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]
