RikHeijdens opened a new pull request #14452: URL: https://github.com/apache/airflow/pull/14452
closes: https://github.com/apache/airflow/issues/14384 This PR fixes two issues: 1. A `TypeError` that would be raised from `_emit_duration_stats_for_finished_state()` when the scheduler transitions a `DagRun` from a `running` state into a `success` or `failed` state if the `DagRun` did not have a `start_date` or `end_date` set. 2. An issue with the `DagRunEditForm`, which would clear the `start_date` and `end_date` for a DagRun, if the form was used to transition a `DagRun` from a `failed` state back into a `running` state (or any other state). In the event where the scheduler would determine the `DagRun` should've been in the `failed` or `success` state (e.g. because the task instances weren't cleared), then this would lead to a scheduler crash. --- **^ Add meaningful description above** Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)** for more information. In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed. In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.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. For queries about this service, please contact Infrastructure at: [email protected]
