ashb opened a new pull request, #44818: URL: https://github.com/apache/airflow/pull/44818
This is some cleanup/preporatory work in order to swap the Dag processor over to use the TaskSDK, and this small change is done to make the future work easier. The main bulk of this change is to remote the `get_*` helper methods and make `_file_stats` a defaultdict instead, and then also swap the DagFileStat class from a NamedTuple (which can't have defaults) to an attrs-defined class which does. To make some of the places of use nicer/still one line, the type of last_duration was changed form a timedelta to a float, as this was what the `get_last_runtime` method did, and we don't need any of the capabilities of a timedelta object elsewhere. -- 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]
