ashb opened a new pull request, #48799: URL: https://github.com/apache/airflow/pull/48799
First off, we can remove the separate `_refresh_from_db` fn -- that was pulled out as part of AIP-44 but isn't needed anymore, so I've moved things back in to the method. Secondly, rather than manually set attributes, we can make use of SQLAchemy to do it for us. Additionally, rather than setting the attribute (which would cause SQLA to think there are some changes) we instead make use of the set_committed_value so that the TI doesn't think anything has changed -- as by definition we've just set it to the value in the DB! -- 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]
